diff options
author | Rich Felker <dalias@aerifal.cx> | 2011-04-06 14:28:29 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2011-04-06 14:28:29 -0400 |
commit | 1fee6186fed608ba61257e04355b5b24bd859a05 (patch) | |
tree | 24345b23d5a62fe917f5e7e4c68b6fb05b61312c | |
parent | 6b87e941f932a93120383de33f5237395fc1354a (diff) | |
download | musl-1fee6186fed608ba61257e04355b5b24bd859a05.tar.gz musl-1fee6186fed608ba61257e04355b5b24bd859a05.tar.xz musl-1fee6186fed608ba61257e04355b5b24bd859a05.zip |
fix prototype for strsep
-rw-r--r-- | include/string.h | 2 | ||||
-rw-r--r-- | src/string/strsep.c | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/include/string.h b/include/string.h index bd195e3f..c755c601 100644 --- a/include/string.h +++ b/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 diff --git a/src/string/strsep.c b/src/string/strsep.c index 1bfe1db1..cb37c32e 100644 --- a/src/string/strsep.c +++ b/src/string/strsep.c @@ -1,3 +1,4 @@ +#define _GNU_SOURCE #include <string.h> char *strsep(char **str, const char *sep) |