From fd01cb81630839fba7c61ee48b31c4fbcbb205e0 Mon Sep 17 00:00:00 2001 From: fanf Date: Fri, 17 Jan 2003 19:10:18 +0000 Subject: Add a necessary cast, because ptrdiff_t isn't necessarily the same as int. Obtained from: OpenBSD --- usr.bin/unifdef/unifdef.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr.bin/unifdef') 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], -- cgit v1.1