Explorar o código

fix prototype for strsep

Rich Felker %!s(int64=14) %!d(string=hai) anos
pai
achega
1fee6186fe
Modificáronse 2 ficheiros con 2 adicións e 1 borrados
  1. 1 1
      include/string.h
  2. 1 0
      src/string/strsep.c

+ 1 - 1
include/string.h

@@ -73,7 +73,7 @@ int strcasecmp (const char *, const char *);
 int strncasecmp (const char *, const char *, size_t);
 char *strchrnul(const char *, int);
 char *strcasestr(const char *, const char *);
-char *strsep(char **, char *);
+char *strsep(char **, const char *);
 #endif
 
 #ifdef __cplusplus

+ 1 - 0
src/string/strsep.c

@@ -1,3 +1,4 @@
+#define _GNU_SOURCE
 #include <string.h>
 
 char *strsep(char **str, const char *sep)