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$";
#endif /* LIBC_RCS and not lint */
#include <stdlib.h>
extern const char *__progname;
const char *

View File

@ -3,6 +3,7 @@ static const char rcsid[] =
"$FreeBSD$";
#endif /* LIBC_RCS and not lint */
#include <stdlib.h>
#include <string.h>
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;