projects
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Collect both user and kernel events for autofdo tests and autoprofiledbootstrap
[binutils-gdb.git]
/
libiberty
/
strtoul.c
diff --git
a/libiberty/strtoul.c
b/libiberty/strtoul.c
index ce969339bc25bef8ad49a27f8071e5d21e3549e5..ba80063531e508b7488d59bb72aaccd2d48be3f6 100644
(file)
--- a/
libiberty/strtoul.c
+++ b/
libiberty/strtoul.c
@@
-37,7
+37,6
@@
#ifdef HAVE_SYS_PARAM_H
#include <sys/param.h>
#endif
#ifdef HAVE_SYS_PARAM_H
#include <sys/param.h>
#endif
-#include <ctype.h>
#include <errno.h>
#ifdef NEED_DECLARATION_ERRNO
extern int errno;
#include <errno.h>
#ifdef NEED_DECLARATION_ERRNO
extern int errno;
@@
-46,6
+45,7
@@
extern int errno;
#include <stdlib.h>
#endif
#include "ansidecl.h"
#include <stdlib.h>
#endif
#include "ansidecl.h"
+#include "safe-ctype.h"
#ifndef ULONG_MAX
#define ULONG_MAX ((unsigned long)(~0L)) /* 0xFFFFFFFF */
#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
* 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;
{
register const char *s = nptr;
register unsigned long acc;