]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
we don't need an intermediate variable
authorAlan T. DeKok <aland@freeradius.org>
Sat, 30 Jun 2018 13:31:26 +0000 (09:31 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Sat, 30 Jun 2018 13:31:26 +0000 (09:31 -0400)
src/main/radiusd.c

index e6b906e55e29838b73795b284859d5b2df72a23d..56a3673eb3b985843d03a2b6145735c0de08ed58 100644 (file)
@@ -529,7 +529,6 @@ int main(int argc, char *argv[])
                 *  or failure message to the parent, via the pipe.
                 */
                if (pid > 0) {
-                       uint8_t child_ret = 0;
                        int stat_loc;
 
                        /* So the pipe is correctly widowed if the child exits */
@@ -540,7 +539,7 @@ int main(int argc, char *argv[])
                         *  the pipe on error.
                         */
                        if ((read(from_child[0], &ret, 1) < 0)) {
-                               child_ret = 0;
+                               ret = EXIT_FAILURE;
                        }
 
                        /* For cleanliness... */