diff options
author | Rich Felker <dalias@aerifal.cx> | 2012-02-24 23:23:47 -0500 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2012-02-24 23:23:47 -0500 |
commit | 06aec8d7152dfb8360cb7ed9b3d7215ca0b0b500 (patch) | |
tree | 6d67bba4b85fd08514c7e99b8fb22a49815df5b6 /include/string.h | |
parent | 78e79d9d502ab8cdbccf94a7f307c78b8847ad0e (diff) | |
download | musl-06aec8d7152dfb8360cb7ed9b3d7215ca0b0b500.tar.gz musl-06aec8d7152dfb8360cb7ed9b3d7215ca0b0b500.tar.bz2 musl-06aec8d7152dfb8360cb7ed9b3d7215ca0b0b500.tar.xz musl-06aec8d7152dfb8360cb7ed9b3d7215ca0b0b500.zip |
replace prototype for basename in string.h with non-prototype declaration
GNU programs may expect the GNU version of basename, which has a
different prototype (argument is const-qualified) and prototype it
themselves too. of course if they're expecting the GNU behavior for
the function, they'll still run into problems, but at least this
eliminates some compile-time failures.
Diffstat (limited to 'include/string.h')
-rw-r--r-- | include/string.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/string.h b/include/string.h index 10d5b176..4aa930ed 100644 --- a/include/string.h +++ b/include/string.h @@ -85,7 +85,7 @@ char *strcasestr(const char *, const char *); char *strsep(char **, const char *); void *memrchr(const void *, int, size_t); void *mempcpy(void *, const void *, size_t); -char *basename(char *); +char *basename(); #endif #ifdef __cplusplus |