ujail: fixup code style // -> /* */
authorEtienne CHAMPETIER <champetier.etienne@gmail.com>
Mon, 30 Nov 2015 23:09:19 +0000 (23:09 +0000)
committerJohn Crispin <blogic@openwrt.org>
Fri, 11 Dec 2015 10:58:08 +0000 (11:58 +0100)
Signed-off-by: Etienne CHAMPETIER <champetier.etienne@gmail.com>
jail/jail.c

index 4297f717c0bd894885585857156fc1c3fdfa7031..5c995e5b21d0000d08d3c580afce1eabd5f6109e 100644 (file)
@@ -237,7 +237,7 @@ static int exec_jail(void)
 
        INFO("exec-ing %s\n", *opts.jail_argv);
        execve(*opts.jail_argv, opts.jail_argv, envp);
-       //we get there only if execve fails
+       /* we get there only if execve fails */
        ERROR("failed to execve %s: %s\n", *opts.jail_argv, strerror(errno));
        exit(EXIT_FAILURE);
 }
@@ -344,7 +344,7 @@ int main(int argc, char **argv)
                }
        }
 
-       //no <binary> param found
+       /* no <binary> param found */
        if (argc - optind < 1) {
                usage();
                return EXIT_FAILURE;
@@ -384,7 +384,7 @@ int main(int argc, char **argv)
        }
 
        if (jail_process.pid > 0) {
-               //parent process
+               /* parent process */
                uloop_process_add(&jail_process);
                uloop_run();
                uloop_done();
@@ -394,7 +394,7 @@ int main(int argc, char **argv)
                        waitpid(jail_process.pid, NULL, 0);
                }
        } else if (jail_process.pid == 0) {
-               //fork child process
+               /* fork child process */
                return exec_jail();
        } else {
                ERROR("failed to clone/fork: %s\n", strerror(errno));