Browse Source

Fix up prototype of strtoul() to match POSIX.

tags/v0.9.3
Michael Brown 18 years ago
parent
commit
8df7e74990
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      src/core/misc.c
  2. 1
    1
      src/include/stdlib.h

+ 1
- 1
src/core/misc.c View File

166
 	return 0;
166
 	return 0;
167
 }
167
 }
168
 
168
 
169
-unsigned long strtoul(const char *p, const char **endp, int base)
169
+unsigned long strtoul(const char *p, char **endp, int base)
170
 {
170
 {
171
 	unsigned long ret = 0;
171
 	unsigned long ret = 0;
172
 	if (base != 10) return 0;
172
 	if (base != 10) return 0;

+ 1
- 1
src/include/stdlib.h View File

1
 #ifndef STDLIB_H
1
 #ifndef STDLIB_H
2
 #define STDLIB_H
2
 #define STDLIB_H
3
 
3
 
4
-extern unsigned long strtoul ( const char *p, const char **endp, int base );
4
+extern unsigned long strtoul ( const char *p, char **endp, int base );
5
 
5
 
6
 #endif /* STDLIB_H */
6
 #endif /* STDLIB_H */

Loading…
Cancel
Save