make variable defined only if it is really used - REUSE_SOCKET

This commit is contained in:
Radim Kolar 2014-09-08 18:06:54 +02:00
parent dd508336ad
commit ee7117b721

View File

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