From f67ee72edf48641954b2425fc785af67e350ad7e Mon Sep 17 00:00:00 2001 From: ru Date: Tue, 21 Aug 2001 17:28:39 +0000 Subject: Fixed warnings. --- lib/libc/gen/setprogname.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/libc/gen/setprogname.c') diff --git a/lib/libc/gen/setprogname.c b/lib/libc/gen/setprogname.c index 341e910..2ddceef 100644 --- a/lib/libc/gen/setprogname.c +++ b/lib/libc/gen/setprogname.c @@ -3,6 +3,7 @@ static const char rcsid[] = "$FreeBSD$"; #endif /* LIBC_RCS and not lint */ +#include #include extern const char *__progname; @@ -10,7 +11,7 @@ extern const char *__progname; void setprogname(const char *progname) { - char *p; + const char *p; p = strrchr(progname, '/'); __progname = p ? p + 1 : progname; -- cgit v1.1