mirror of https://github.com/ipxe/ipxe.git
Fix up prototype of strtoul() to match POSIX.
parent
01bd78d62a
commit
8df7e74990
|
@ -166,7 +166,7 @@ int inet_aton ( const char *cp, struct in_addr *inp ) {
|
||||||
return 0;
|
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;
|
unsigned long ret = 0;
|
||||||
if (base != 10) return 0;
|
if (base != 10) return 0;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#ifndef STDLIB_H
|
#ifndef STDLIB_H
|
||||||
#define 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 */
|
#endif /* STDLIB_H */
|
||||||
|
|
Loading…
Reference in New Issue