From: Alan T. DeKok Date: Sat, 30 Jun 2018 13:31:26 +0000 (-0400) Subject: we don't need an intermediate variable X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=09c6ff76c77490788eae2cc481780f52a7ad8a3d;p=thirdparty%2Ffreeradius-server.git we don't need an intermediate variable --- diff --git a/src/main/radiusd.c b/src/main/radiusd.c index e6b906e55e2..56a3673eb3b 100644 --- a/src/main/radiusd.c +++ b/src/main/radiusd.c @@ -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... */