mirror of
https://github.com/ipxe/ipxe
synced 2025-12-16 17:41:18 +03:00
Fix up prototype of strtoul() to match POSIX.
This commit is contained in:
@@ -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 */
|
||||||
|
|||||||
Reference in New Issue
Block a user