Clean-up: common: fix -Wshadow error in lttng_daemonize
[lttng-tools.git] / src / common / daemonize.c
index 594cc58155b59608801d355ec3f419e0d17893c6..cb094b1effa52f7145132792d2845b7ce92e6ea5 100644 (file)
@@ -22,7 +22,6 @@ LTTNG_HIDDEN
 int lttng_daemonize(pid_t *child_ppid, int *completion_flag,
                int close_fds)
 {
-       int ret;
        pid_t pid;
 
        /* Get parent pid of this process. */
@@ -35,6 +34,7 @@ int lttng_daemonize(pid_t *child_ppid, int *completion_flag,
        } else if (pid == 0) {
                int fd;
                pid_t sid;
+               int ret;
 
                /* Child */
 
This page took 0.022822 seconds and 4 git commands to generate.