From 8df7e74990e125c9632e006e61d6378009702079 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Sun, 30 Apr 2006 11:45:38 +0000 Subject: [PATCH] Fix up prototype of strtoul() to match POSIX. --- src/core/misc.c | 2 +- src/include/stdlib.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/misc.c b/src/core/misc.c index 22930fcf..f57dea40 100644 --- a/src/core/misc.c +++ b/src/core/misc.c @@ -166,7 +166,7 @@ int inet_aton ( const char *cp, struct in_addr *inp ) { return 0; } -unsigned long strtoul(const char *p, const char **endp, int base) +unsigned long strtoul(const char *p, char **endp, int base) { unsigned long ret = 0; if (base != 10) return 0; diff --git a/src/include/stdlib.h b/src/include/stdlib.h index 4dcabfb6..4dd7e54c 100644 --- a/src/include/stdlib.h +++ b/src/include/stdlib.h @@ -1,6 +1,6 @@ #ifndef STDLIB_H #define STDLIB_H -extern unsigned long strtoul ( const char *p, const char **endp, int base ); +extern unsigned long strtoul ( const char *p, char **endp, int base ); #endif /* STDLIB_H */