Fixed warnings.
This commit is contained in:
parent
80578ef3c9
commit
c45f3b47c8
@ -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 *
|
||||||
|
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user