Fixed warnings.

This commit is contained in:
Ruslan Ermilov 2001-08-21 17:28:39 +00:00
parent 80578ef3c9
commit c45f3b47c8
2 changed files with 4 additions and 1 deletions

View File

@ -3,6 +3,8 @@ static const char rcsid[] =
"$FreeBSD$"; "$FreeBSD$";
#endif /* LIBC_RCS and not lint */ #endif /* LIBC_RCS and not lint */
#include <stdlib.h>
extern const char *__progname; extern const char *__progname;
const char * const char *

View File

@ -3,6 +3,7 @@ static const char rcsid[] =
"$FreeBSD$"; "$FreeBSD$";
#endif /* LIBC_RCS and not lint */ #endif /* LIBC_RCS and not lint */
#include <stdlib.h>
#include <string.h> #include <string.h>
extern const char *__progname; extern const char *__progname;
@ -10,7 +11,7 @@ extern const char *__progname;
void void
setprogname(const char *progname) setprogname(const char *progname)
{ {
char *p; const char *p;
p = strrchr(progname, '/'); p = strrchr(progname, '/');
__progname = p ? p + 1 : progname; __progname = p ? p + 1 : progname;