mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-15 21:59:41 -04:00
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:
parent
c21adb5b00
commit
d1039e5dc5
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue