BUILD/CLEANUP: systemd: avoid a warning due to mixed code and declaration

Gcc complains because the systemd wrapper mixed code and declaration :
"warning: ISO C90 forbids mixed declarations and code
[-Wdeclaration-after-statement]".
This commit is contained in:
Cyril Bont 2015-03-03 23:26:14 +01:00 committed by Willy Tarreau
parent c21adb5b00
commit d1039e5dc5

View File

@ -163,6 +163,7 @@ static void init(int argc, char **argv)
int main(int argc, char **argv)
{
int status;
struct sigaction sa;
wrapper_argc = argc;
wrapper_argv = argv;
@ -170,7 +171,6 @@ int main(int argc, char **argv)
--argc; ++argv;
init(argc, argv);
struct sigaction sa;
memset(&sa, 0, sizeof(struct sigaction));
sa.sa_handler = &signal_handler;
sigaction(SIGUSR2, &sa, NULL);