Remove unused variable warnings when omitting stuff at compile-time.

This commit is contained in:
Vladislav Grishenko
2013-09-24 16:18:49 +01:00
committed by Simon Kelley
parent b5d9a362b4
commit 408c368fa5
7 changed files with 22 additions and 0 deletions

View File

@@ -709,6 +709,8 @@ static struct listener *create_listeners(union mysockaddr *addr, int do_tftp, in
struct listener *l = NULL;
int fd = -1, tcpfd = -1, tftpfd = -1;
(void)do_tftp;
if (daemon->port != 0)
{
fd = make_sock(addr, SOCK_DGRAM, dienow);