Don't shadow.
This commit is contained in:
parent
cf897932ca
commit
121bd68d1c
@ -344,8 +344,8 @@ char *ip;
|
|||||||
if (s == INVALID_SOCKET) goto err;
|
if (s == INVALID_SOCKET) goto err;
|
||||||
#if defined SOL_SOCKET && defined SO_REUSEADDR
|
#if defined SOL_SOCKET && defined SO_REUSEADDR
|
||||||
{
|
{
|
||||||
int i = 1;
|
int j = 1;
|
||||||
setsockopt(s, SOL_SOCKET, SO_REUSEADDR, &i, sizeof i);
|
setsockopt(s, SOL_SOCKET, SO_REUSEADDR, &j, sizeof j);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
if (bind(s,(struct sockaddr *)&server,sizeof(server)) == -1)
|
if (bind(s,(struct sockaddr *)&server,sizeof(server)) == -1)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user