kill.c: inverted test of strcmp
authorBrett Gordon <beretta42@gmail.com>
Tue, 23 Feb 2016 18:41:28 +0000 (13:41 -0500)
committerBrett Gordon <beretta42@gmail.com>
Tue, 23 Feb 2016 18:41:28 +0000 (13:41 -0500)
Applications/util/kill.c

index f3cf9df..e7d9460 100644 (file)
@@ -29,9 +29,9 @@ int main(int argc, char *argv[])
            sig = SIGINT;
        else if (!strcmp(cp, "QUIT"))
            sig = SIGQUIT;
-       else if (strcmp(cp, "KILL"))
+       else if (!strcmp(cp, "KILL"))
            sig = SIGKILL;
-       else if (strcmp(cp, "TERM"))
+       else if (!strcmp(cp, "TERM"))
            sig = SIGTERM;
        else {
            sig = 0;