diff options
author | Paul Smith <psmith@gnu.org> | 2002-10-14 21:54:04 +0000 |
---|---|---|
committer | Paul Smith <psmith@gnu.org> | 2002-10-14 21:54:04 +0000 |
commit | 6374309c6d4d17ab1e4109133ab8aad55f77d51c (patch) | |
tree | 91011a11f637df979b9c5dd8b0f1fc4bfc2be831 /signame.c | |
parent | 8bbdbb02b30ffd39c2fac9259b3a91cb62e1711d (diff) | |
download | gunmake-6374309c6d4d17ab1e4109133ab8aad55f77d51c.tar.gz |
Convert the source code to use ANSI C style function definitions and
enable the automake ansi2knr capability.
Right now this doesn't quite build using a K&R compiler because of a
problem with the loadavg test program, but the rest of the code works. I'm
asking the automake list about this problem.
Diffstat (limited to 'signame.c')
-rw-r--r-- | signame.c | 10 |
1 files changed, 3 insertions, 7 deletions
@@ -63,10 +63,7 @@ static int sig_table_nelts = 0; /* Enter signal number NUMBER into the tables with ABBREV and NAME. */ static void -init_sig (number, abbrev, name) - int number; - const char *abbrev; - const char *name; +init_sig (int number, const char *abbrev, const char *name) { /* If this value is ever greater than NSIG it seems like it'd be a bug in the system headers, but... better safe than sorry. We know, for @@ -83,7 +80,7 @@ init_sig (number, abbrev, name) } static int -signame_init () +signame_init (void) { int i; @@ -233,8 +230,7 @@ signame_init () char * -strsignal (signal) - int signal; +strsignal (int signal) { static char buf[] = "Signal 12345678901234567890"; |