ssh: kill is no longer expensive with tiny atoi
authorAlan Cox <alan@linux.intel.com>
Sat, 13 Jun 2015 21:39:34 +0000 (22:39 +0100)
committerAlan Cox <alan@linux.intel.com>
Sat, 13 Jun 2015 21:39:34 +0000 (22:39 +0100)
Applications/util/ssh.c

index 16b700c..2617c2f 100644 (file)
@@ -307,7 +307,6 @@ int main(int argc, char *argval[])
             else
                 lastfg = -1;
         }
-#ifdef SSH_EXPENSIVE
         /* Check for User request to kill a process */
         else if (strcmp(cmd, "kill") == 0) {
             if (arg[0][0] == '-') {
@@ -327,6 +326,7 @@ int main(int argc, char *argval[])
                     perror("kill");
             }
         }
+#ifdef SSH_EXPENSIVE
         else if (strcmp(cmd, "pwd") == 0) {
            if (getcwd(buf, 128)){
                char *ptr=&buf[strlen(buf)];