X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=libiberty%2Fstrtoul.c;h=ba80063531e508b7488d59bb72aaccd2d48be3f6;hb=5ce0ff9b5464a030ea956473add180db42dcd513;hp=ce969339bc25bef8ad49a27f8071e5d21e3549e5;hpb=ac424eb32cfa4618d9c3b58276e950e2cc58c540;p=binutils-gdb.git diff --git a/libiberty/strtoul.c b/libiberty/strtoul.c index ce969339bc2..ba80063531e 100644 --- a/libiberty/strtoul.c +++ b/libiberty/strtoul.c @@ -37,7 +37,6 @@ #ifdef HAVE_SYS_PARAM_H #include #endif -#include #include #ifdef NEED_DECLARATION_ERRNO extern int errno; @@ -46,6 +45,7 @@ extern int errno; #include #endif #include "ansidecl.h" +#include "safe-ctype.h" #ifndef ULONG_MAX #define ULONG_MAX ((unsigned long)(~0L)) /* 0xFFFFFFFF */ @@ -58,10 +58,7 @@ extern int errno; * alphabets and digits are each contiguous. */ unsigned long -strtoul(nptr, endptr, base) - const char *nptr; - char **endptr; - register int base; +strtoul(const char *nptr, char **endptr, register int base) { register const char *s = nptr; register unsigned long acc;