Ver código fonte

Fix up prototype of strtoul() to match POSIX.

tags/v0.9.3
Michael Brown 18 anos atrás
pai
commit
8df7e74990
2 arquivos alterados com 2 adições e 2 exclusões
  1. 1
    1
      src/core/misc.c
  2. 1
    1
      src/include/stdlib.h

+ 1
- 1
src/core/misc.c Ver arquivo

@@ -166,7 +166,7 @@ int inet_aton ( const char *cp, struct in_addr *inp ) {
166 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 171
 	unsigned long ret = 0;
172 172
 	if (base != 10) return 0;

+ 1
- 1
src/include/stdlib.h Ver arquivo

@@ -1,6 +1,6 @@
1 1
 #ifndef STDLIB_H
2 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 6
 #endif /* STDLIB_H */

Carregando…
Cancelar
Salvar