summaryrefslogtreecommitdiff
path: root/signame.c
diff options
context:
space:
mode:
authorPaul Smith <psmith@gnu.org>2002-10-14 21:54:04 +0000
committerPaul Smith <psmith@gnu.org>2002-10-14 21:54:04 +0000
commit6374309c6d4d17ab1e4109133ab8aad55f77d51c (patch)
tree91011a11f637df979b9c5dd8b0f1fc4bfc2be831 /signame.c
parent8bbdbb02b30ffd39c2fac9259b3a91cb62e1711d (diff)
downloadgunmake-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.c10
1 files changed, 3 insertions, 7 deletions
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";