diff options
author | Jim Meyering <jim@meyering.net> | 1998-02-24 22:59:34 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1998-02-24 22:59:34 +0000 |
commit | 7a04e95c6254c84b634dc2800faf7161c9c5d87c (patch) | |
tree | 27eede4f278c781cebbfe07fd3059b0e41a8e240 | |
parent | 938e7fe7ef2d5f8b437abac42fb548965301db18 (diff) | |
download | coreutils-7a04e95c6254c84b634dc2800faf7161c9c5d87c.tar.xz |
capitalize macro params and protoize
-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); |