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:
Kevin Cernekee
2015-02-08 17:26:36 -08:00
committed by Nikos Mavrogiannopoulos
parent 38206d6e93
commit fbe55c23ef

View File

@@ -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;