diff options
author | fanf <fanf@FreeBSD.org> | 2003-01-17 19:10:18 +0000 |
---|---|---|
committer | fanf <fanf@FreeBSD.org> | 2003-01-17 19:10:18 +0000 |
commit | fd01cb81630839fba7c61ee48b31c4fbcbb205e0 (patch) | |
tree | b6aaafc09f817b5e6400e8727fe49c1d91a82890 /usr.bin/unifdef | |
parent | c5c399f050fe596c46bcb746d0a4f2009f606696 (diff) | |
download | FreeBSD-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/unifdef')
-rw-r--r-- | usr.bin/unifdef/unifdef.c | 2 |
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], |