summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMichael Brown2006-04-30 13:45:38 +0200
committerMichael Brown2006-04-30 13:45:38 +0200
commit8df7e74990e125c9632e006e61d6378009702079 (patch)
treea02608bd0a3bfdb981b6fb2f14f451755236bc1e /src
parentCreated net/tcp and moved hello.c there (diff)
downloadipxe-8df7e74990e125c9632e006e61d6378009702079.tar.gz
ipxe-8df7e74990e125c9632e006e61d6378009702079.tar.xz
ipxe-8df7e74990e125c9632e006e61d6378009702079.zip
Fix up prototype of strtoul() to match POSIX.
Diffstat (limited to 'src')
-rw-r--r--src/core/misc.c2
-rw-r--r--src/include/stdlib.h2
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 */