Procházet zdrojové kódy

Fix up prototype of strtoul() to match POSIX.

tags/v0.9.3
Michael Brown před 20 roky
rodič
revize
8df7e74990
2 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 1
    1
      src/core/misc.c
  2. 1
    1
      src/include/stdlib.h

+ 1
- 1
src/core/misc.c Zobrazit soubor

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 Zobrazit soubor

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 */

Načítá se…
Zrušit
Uložit