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 /lib/basename.c | |
| parent | add copyright (diff) | |
| download | coreutils-7a04e95c6254c84b634dc2800faf7161c9c5d87c.tar.gz coreutils-7a04e95c6254c84b634dc2800faf7161c9c5d87c.zip | |
capitalize macro params and protoize
Diffstat (limited to 'lib/basename.c')
| -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); |
