diff options
author | keramida <keramida@FreeBSD.org> | 2008-06-07 09:37:30 +0000 |
---|---|---|
committer | keramida <keramida@FreeBSD.org> | 2008-06-07 09:37:30 +0000 |
commit | 3902e2cc48742628ffa0f591a169fc4e329a95de (patch) | |
tree | 6aa9da2c382828d4c1874de596a47ed4115dc3c7 /bin | |
parent | bcf4110c1e24e4b9a14d3151bed75bf114f0d2b4 (diff) | |
download | FreeBSD-src-3902e2cc48742628ffa0f591a169fc4e329a95de.zip FreeBSD-src-3902e2cc48742628ffa0f591a169fc4e329a95de.tar.gz |
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
Diffstat (limited to 'bin')
-rw-r--r-- | bin/ln/ln.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/ln/ln.c b/bin/ln/ln.c index 45a7cb3..1908c16 100644 --- a/bin/ln/ln.c +++ b/bin/ln/ln.c @@ -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); } |