diff options
author | Jim Meyering <jim@meyering.net> | 1998-12-31 14:56:20 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1998-12-31 14:56:20 +0000 |
commit | bf588140c5ee6c921e37f5a1780f315aba36467b (patch) | |
tree | 328a6261e03544aa530ca491ac2f5712a5b0afcd /lib | |
parent | 0f2fbadbeaed5398d0b61f8ed03fd59f1d9de5f5 (diff) | |
download | coreutils-bf588140c5ee6c921e37f5a1780f315aba36467b.tar.xz |
(addext): Protoize.
Indent cpp directives to match nesting.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/addext.c | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/lib/addext.c b/lib/addext.c index 56d0e4f4a..71e395af8 100644 --- a/lib/addext.c +++ b/lib/addext.c @@ -1,5 +1,5 @@ /* addext.c -- add an extension to a file name - Copyright (C) 1990, 1997 Free Software Foundation, Inc. + Copyright (C) 1990, 1997, 1998 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -23,10 +23,10 @@ #endif #ifndef HAVE_DOS_FILE_NAMES -#define HAVE_DOS_FILE_NAMES 0 +# define HAVE_DOS_FILE_NAMES 0 #endif #ifndef HAVE_LONG_FILE_NAMES -#define HAVE_LONG_FILE_NAMES 0 +# define HAVE_LONG_FILE_NAMES 0 #endif #include <backupfile.h> @@ -35,7 +35,7 @@ # include <limits.h> #endif #ifndef _POSIX_NAME_MAX -#define _POSIX_NAME_MAX 14 +# define _POSIX_NAME_MAX 14 #endif #include <sys/types.h> @@ -53,10 +53,7 @@ in which case just append the character E. */ void -addext (filename, ext, e) - char *filename; - char const *ext; - int e; +addext (char *filename, char const *ext, int e) { char *s = base_name (filename); size_t slen = strlen (s), extlen = strlen (ext); |