diff --git a/src/net.c b/src/net.c index 81a73bc34..7539500fe 100644 --- a/src/net.c +++ b/src/net.c @@ -137,7 +137,7 @@ int setsockname(sockname_t *addr, char *src, int port, int allowres) volatile int af = AF_UNSPEC; char ip2[EGG_INET_ADDRSTRLEN]; #ifdef IPV6 - int pref; + volatile int pref; #else int i, count; #endif