mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-02-10 00:37:00 +08:00
main: Fix unused variable warning on !HAVE_LIBSYSTEMD builds
This fixes:
CC main.o
main.c: In function ‘listen_ports’:
main.c:276:11: warning: unused variable ‘fds’ [-Wunused-variable]
int ret, fds;
^
This commit is contained in:
committed by
Nikos Mavrogiannopoulos
parent
38206d6e93
commit
fbe55c23ef
@@ -273,7 +273,10 @@ listen_ports(void *pool, struct cfg_st* config,
|
||||
{
|
||||
struct addrinfo hints, *res;
|
||||
char portname[6];
|
||||
int ret, fds;
|
||||
int ret;
|
||||
#ifdef HAVE_LIBSYSTEMD
|
||||
int fds;
|
||||
#endif
|
||||
|
||||
list_head_init(&list->head);
|
||||
list->total = 0;
|
||||
|
||||
Reference in New Issue
Block a user