diff options
-rw-r--r-- | lib/basename.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/basename.c b/lib/basename.c index 75dd07875..f4f38f9a6 100644 --- a/lib/basename.c +++ b/lib/basename.c @@ -20,11 +20,11 @@ #endif #ifndef FILESYSTEM_PREFIX_LEN -# define FILESYSTEM_PREFIX_LEN(f) 0 +# define FILESYSTEM_PREFIX_LEN(Filename) 0 #endif #ifndef ISSLASH -# define ISSLASH(c) ((c) == '/') +# define ISSLASH(C) ((C) == '/') #endif /* In general, we can't use the builtin `basename' function if available, @@ -32,8 +32,7 @@ In some environments the builtin `basename' modifies its argument. */ char * -base_name (name) - char const *name; +base_name (char const *name) { char const *base = name += FILESYSTEM_PREFIX_LEN (name); |