From 6374309c6d4d17ab1e4109133ab8aad55f77d51c Mon Sep 17 00:00:00 2001 From: Paul Smith Date: Mon, 14 Oct 2002 21:54:04 +0000 Subject: 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. --- signame.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'signame.c') diff --git a/signame.c b/signame.c index 051d544..432c312 100644 --- a/signame.c +++ b/signame.c @@ -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"; -- cgit v1.2.3