typo
authorKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Thu, 20 Jun 1991 07:56:59 +0000 (23:56 -0800)
committerKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Thu, 20 Jun 1991 07:56:59 +0000 (23:56 -0800)
SCCS-vsn: bin/kill/kill.c 5.2

usr/src/bin/kill/kill.c

index 4236b47..fb7a191 100644 (file)
@@ -12,7 +12,7 @@ char copyright[] =
 #endif /* not lint */
 
 #ifndef lint
 #endif /* not lint */
 
 #ifndef lint
-static char sccsid[] = "@(#)kill.c     5.1 (Berkeley) %G%";
+static char sccsid[] = "@(#)kill.c     5.2 (Berkeley) %G%";
 #endif /* not lint */
 
 #include <signal.h>
 #endif /* not lint */
 
 #include <signal.h>
@@ -85,7 +85,7 @@ main(argc, argv)
                            "kill: illegal process id %s\n", *argv);
                        continue;
                }
                            "kill: illegal process id %s\n", *argv);
                        continue;
                }
-               if (kill(atoi(*argv), numsig) == -1) {
+               if (kill(pid, numsig) == -1) {
                        (void)fprintf(stderr,
                            "kill: %s: %s\n", *argv, strerror(errno));
                        errors = 1;
                        (void)fprintf(stderr,
                            "kill: %s: %s\n", *argv, strerror(errno));
                        errors = 1;