From 1fee6186fed608ba61257e04355b5b24bd859a05 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Wed, 6 Apr 2011 14:28:29 -0400 Subject: fix prototype for strsep --- include/string.h | 2 +- src/string/strsep.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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 char *strsep(char **str, const char *sep) -- cgit v1.2.1