diff options
author | kraai <kraai@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2001-08-24 20:35:45 +0000 |
---|---|---|
committer | kraai <kraai@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2001-08-24 20:35:45 +0000 |
commit | 9f80b1ef05916ed865a70e58f44ace9bbe03ab4c (patch) | |
tree | d75333cf5a2360ef3f9fc16bf3099ac2461b45f3 /libbb | |
parent | 99a0ffbdeef90512689e5f954e5ba04a80a541e2 (diff) | |
download | busybox-w32-9f80b1ef05916ed865a70e58f44ace9bbe03ab4c.tar.gz busybox-w32-9f80b1ef05916ed865a70e58f44ace9bbe03ab4c.tar.bz2 busybox-w32-9f80b1ef05916ed865a70e58f44ace9bbe03ab4c.zip |
Eliminate improper consts and allow standard version to override.
git-svn-id: svn://busybox.net/trunk/busybox@3352 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'libbb')
-rw-r--r-- | libbb/dirname.c | 8 | ||||
-rw-r--r-- | libbb/libbb.h | 2 |
2 files changed, 7 insertions, 3 deletions
diff --git a/libbb/dirname.c b/libbb/dirname.c index 87db1f24f..df9a49daa 100644 --- a/libbb/dirname.c +++ b/libbb/dirname.c | |||
@@ -22,12 +22,14 @@ | |||
22 | #include <string.h> | 22 | #include <string.h> |
23 | #include "libbb.h" | 23 | #include "libbb.h" |
24 | 24 | ||
25 | #if defined __UCLIBC__ || __GNU_LIBRARY___ < 5 | ||
26 | |||
25 | /* Return a string containing the path name of the parent | 27 | /* Return a string containing the path name of the parent |
26 | * directory of PATH. */ | 28 | * directory of PATH. */ |
27 | 29 | ||
28 | char *dirname(const char *path) | 30 | char *dirname(char *path) |
29 | { | 31 | { |
30 | const char *s; | 32 | char *s; |
31 | 33 | ||
32 | /* Go to the end of the string. */ | 34 | /* Go to the end of the string. */ |
33 | s = path + strlen(path) - 1; | 35 | s = path + strlen(path) - 1; |
@@ -49,3 +51,5 @@ char *dirname(const char *path) | |||
49 | s[1] = '\0'; | 51 | s[1] = '\0'; |
50 | return path; | 52 | return path; |
51 | } | 53 | } |
54 | |||
55 | #endif | ||
diff --git a/libbb/libbb.h b/libbb/libbb.h index a7e38325b..30f0bb9a7 100644 --- a/libbb/libbb.h +++ b/libbb/libbb.h | |||
@@ -259,7 +259,7 @@ extern FILE *gz_open(FILE *compressed_file, int *pid); | |||
259 | extern struct hostent *xgethostbyname(const char *name); | 259 | extern struct hostent *xgethostbyname(const char *name); |
260 | extern int create_icmp_socket(void); | 260 | extern int create_icmp_socket(void); |
261 | 261 | ||
262 | char *dirname (const char *path); | 262 | char *dirname (char *path); |
263 | 263 | ||
264 | int make_directory (char *path, long mode, int flags); | 264 | int make_directory (char *path, long mode, int flags); |
265 | 265 | ||