aboutsummaryrefslogtreecommitdiff
path: root/bin/kill/kill.c
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2002-02-02 06:48:10 +0000
committerWarner Losh <imp@FreeBSD.org>2002-02-02 06:48:10 +0000
commit46251dde8f47db03ad83997efd5e8f8bd8938855 (patch)
treef26db6e85c29b2244f601bdb366caa7f26a96c24 /bin/kill/kill.c
parent7669d0fc4f7d3869e27f94843ca120399a4825e9 (diff)
downloadsrc-46251dde8f47db03ad83997efd5e8f8bd8938855.tar.gz
src-46251dde8f47db03ad83997efd5e8f8bd8938855.zip
o __P has been reoved
o Old-style K&R declarations have been converted to new C89 style o register has been removed o prototype for main() has been removed (gcc3 makes it an error) o int main(int argc, char *argv[]) is the preferred main definition. o Attempt to not break style(9) conformance for declarations more than they already are.
Notes
Notes: svn path=/head/; revision=90110
Diffstat (limited to 'bin/kill/kill.c')
-rw-r--r--bin/kill/kill.c24
1 files changed, 9 insertions, 15 deletions
diff --git a/bin/kill/kill.c b/bin/kill/kill.c
index 45be37d43939..48198c82e5d3 100644
--- a/bin/kill/kill.c
+++ b/bin/kill/kill.c
@@ -53,16 +53,13 @@ static const char rcsid[] =
#include <stdlib.h>
#include <string.h>
-int main __P((int, char *[]));
-void nosig __P((char *));
-void printsignals __P((FILE *));
-int signame_to_signum __P((char *));
-void usage __P((void));
+void nosig(char *);
+void printsignals(FILE *);
+int signame_to_signum(char *);
+void usage(void);
int
-main(argc, argv)
- int argc;
- char *argv[];
+main(int argc, char *argv[])
{
int errors, numsig, pid;
char *ep;
@@ -140,8 +137,7 @@ main(argc, argv)
}
int
-signame_to_signum(sig)
- char *sig;
+signame_to_signum(char *sig)
{
int n;
@@ -155,8 +151,7 @@ signame_to_signum(sig)
}
void
-nosig(name)
- char *name;
+nosig(char *name)
{
warnx("unknown signal %s; valid signals:", name);
@@ -165,8 +160,7 @@ nosig(name)
}
void
-printsignals(fp)
- FILE *fp;
+printsignals(FILE *fp)
{
int n;
@@ -180,7 +174,7 @@ printsignals(fp)
}
void
-usage()
+usage(void)
{
(void)fprintf(stderr, "%s\n%s\n%s\n%s\n",