mirror of
https://git.FreeBSD.org/src.git
synced 2024-11-27 08:00:11 +00:00
Unbreak last commit to ln for amd64.
Cast string precision to `int'. amd64 systems warn about the field precision being `long int' if we don't, and pathnames are normally short enough to fit in an `int'. Noticed by: pav
This commit is contained in:
parent
7e44e88a84
commit
d605a06c6e
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=179636
@ -233,7 +233,7 @@ linkit(const char *source, const char *target, int isdir)
|
||||
else
|
||||
p = target;
|
||||
(void)snprintf(wbuf, sizeof(wbuf), "%.*s%s",
|
||||
(p - target), target, source);
|
||||
(int)(p - target), target, source);
|
||||
if (stat(wbuf, &sb) != 0)
|
||||
warn("warning: %s", source);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user