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:
Giorgos Keramidas 2008-06-07 09:37:30 +00:00
parent 7e44e88a84
commit d605a06c6e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=179636

View File

@ -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);
}