summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authorfanf <fanf@FreeBSD.org>2003-01-17 19:10:18 +0000
committerfanf <fanf@FreeBSD.org>2003-01-17 19:10:18 +0000
commitfd01cb81630839fba7c61ee48b31c4fbcbb205e0 (patch)
treeb6aaafc09f817b5e6400e8727fe49c1d91a82890 /usr.bin
parentc5c399f050fe596c46bcb746d0a4f2009f606696 (diff)
downloadFreeBSD-src-fd01cb81630839fba7c61ee48b31c4fbcbb205e0.zip
FreeBSD-src-fd01cb81630839fba7c61ee48b31c4fbcbb205e0.tar.gz
Add a necessary cast, because ptrdiff_t isn't necessarily the same as int.
Obtained from: OpenBSD
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/unifdef/unifdef.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/unifdef/unifdef.c b/usr.bin/unifdef/unifdef.c
index c17a196..426ed49 100644
--- a/usr.bin/unifdef/unifdef.c
+++ b/usr.bin/unifdef/unifdef.c
@@ -791,7 +791,7 @@ findsym(const char *str)
if (cp == str)
return -1;
if (symlist)
- printf("%.*s\n", cp-str, str);
+ printf("%.*s\n", (int)(cp-str), str);
for (symind = 0; symind < nsyms; ++symind) {
if (strlcmp(symname[symind], str, cp-str) == 0) {
debug("findsym %s %s", symname[symind],
OpenPOWER on IntegriCloud