runsv: run ./finish with parameters (runit compat)
[oweals/busybox.git] / shell / cttyhack.c
index 4041817200024ed0b540e052dc38356fe6e30bba..572a3af035cb6e18db92dbe82c3fa3e5cad6c38f 100644 (file)
@@ -38,7 +38,7 @@ struct serial_struct {
 };
 
 int cttyhack_main(int argc, char **argv) MAIN_EXTERNALLY_VISIBLE;
-int cttyhack_main(int argc, char **argv)
+int cttyhack_main(int argc UNUSED_PARAM, char **argv)
 {
        int fd;
        char console[sizeof(int)*3 + 16];
@@ -73,5 +73,5 @@ int cttyhack_main(int argc, char **argv)
        }
 
        BB_EXECVP(argv[0], argv);
-       bb_perror_msg_and_die("cannot exec '%s'", argv[0]);
+       bb_perror_msg_and_die("can't execute '%s'", argv[0]);
 }