Fixed warnings.
This commit is contained in:
parent
80578ef3c9
commit
c45f3b47c8
@ -3,6 +3,8 @@ static const char rcsid[] =
|
||||
"$FreeBSD$";
|
||||
#endif /* LIBC_RCS and not lint */
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
extern const char *__progname;
|
||||
|
||||
const char *
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user