ソースを参照

Fix up prototype of strtoul() to match POSIX.

tags/v0.9.3
Michael Brown 20年前
コミット
8df7e74990
2個のファイルの変更2行の追加2行の削除
  1. 1
    1
      src/core/misc.c
  2. 1
    1
      src/include/stdlib.h

+ 1
- 1
src/core/misc.c ファイルの表示

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 ファイルの表示

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

読み込み中…
キャンセル
保存