From 3902e2cc48742628ffa0f591a169fc4e329a95de Mon Sep 17 00:00:00 2001 From: keramida Date: Sat, 7 Jun 2008 09:37:30 +0000 Subject: 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 --- bin/ln/ln.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin/ln') 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); } -- cgit v1.1