From ee7117b721ed6cef8f4485ce4ea3e6a3ed2782f6 Mon Sep 17 00:00:00 2001 From: Radim Kolar Date: Mon, 8 Sep 2014 18:06:54 +0200 Subject: [PATCH] make variable defined only if it is really used - REUSE_SOCKET --- common/udp_io.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/common/udp_io.c b/common/udp_io.c index aa4efe9..2119241 100644 --- a/common/udp_io.c +++ b/common/udp_io.c @@ -30,7 +30,9 @@ int _x_udp (const char * bindaddress, unsigned short * port) socklen_t len; struct sockaddr_in me ; struct sockaddr_in myadr; +#ifdef REUSE_SOCKET int zz=1; +#endif if(bindaddress == NULL || _x_adr (bindaddress, *port,&me ) != 0) { memset(&me,0,sizeof(me));