add 1994 copyright
[unix-history] / usr / src / bin / kill / kill.c
index ad38fa2..7d7307d 100644 (file)
@@ -1,18 +1,18 @@
 /*
 /*
- * Copyright (c) 1988 Regents of the University of California.
- * All rights reserved.
+ * Copyright (c) 1988, 1993, 1994
+ *     The Regents of the University of California.  All rights reserved.
  *
  * %sccs.include.redist.c%
  */
 
 #ifndef lint
  *
  * %sccs.include.redist.c%
  */
 
 #ifndef lint
-char copyright[] =
-"@(#) Copyright (c) 1988 Regents of the University of California.\n\
- All rights reserved.\n";
+static char copyright[] =
+"@(#) Copyright (c) 1988, 1993, 1994\n\
      The Regents of the University of California.  All rights reserved.\n";
 #endif /* not lint */
 
 #ifndef lint
 #endif /* not lint */
 
 #ifndef lint
-static char sccsid[] = "@(#)kill.c     5.8 (Berkeley) %G%";
+static char sccsid[] = "@(#)kill.c     8.3 (Berkeley) %G%";
 #endif /* not lint */
 
 #include <ctype.h>
 #endif /* not lint */
 
 #include <ctype.h>
@@ -32,8 +32,8 @@ main(argc, argv)
        int argc;
        char *argv[];
 {
        int argc;
        char *argv[];
 {
-       register int errors, numsig, pid;
-       register const char *const *p;
+       const char *const *p;
+       int errors, numsig, pid;
        char *ep;
 
        if (argc < 2)
        char *ep;
 
        if (argc < 2)
@@ -88,8 +88,8 @@ void
 nosig(name)
        char *name;
 {
 nosig(name)
        char *name;
 {
-       (void)fprintf(stderr,
-           "kill: unknown signal %s; valid signals:\n", name);
+
+       warnx("unknown signal %s; valid signals:", name);
        printsig(stderr);
        exit(1);
 }
        printsig(stderr);
        exit(1);
 }
@@ -98,8 +98,8 @@ void
 printsig(fp)
        FILE *fp;
 {
 printsig(fp)
        FILE *fp;
 {
-       register int cnt;
-       register const char *const *p;
+       const char *const *p;
+       int cnt;
 
        for (cnt = NSIG, p = sys_signame + 1; --cnt; ++p) {
                (void)fprintf(fp, "%s ", *p);
 
        for (cnt = NSIG, p = sys_signame + 1; --cnt; ++p) {
                (void)fprintf(fp, "%s ", *p);
@@ -112,6 +112,7 @@ printsig(fp)
 void
 usage()
 {
 void
 usage()
 {
+
        (void)fprintf(stderr, "usage: kill [-l] [-sig] pid ...\n");
        exit(1);
 }
        (void)fprintf(stderr, "usage: kill [-l] [-sig] pid ...\n");
        exit(1);
 }