remove warning
This commit is contained in:
parent
22f88f6550
commit
d4cdc92b4a
@ -9,6 +9,7 @@
|
|||||||
void socket_deferaccept(int s,enum defermode mode) {
|
void socket_deferaccept(int s,enum defermode mode) {
|
||||||
#ifdef TCP_DEFER_ACCEPT
|
#ifdef TCP_DEFER_ACCEPT
|
||||||
int one=1;
|
int one=1;
|
||||||
|
(void)mode;
|
||||||
setsockopt(s,IPPROTO_TCP,TCP_DEFER_ACCEPT,&one,sizeof(one));
|
setsockopt(s,IPPROTO_TCP,TCP_DEFER_ACCEPT,&one,sizeof(one));
|
||||||
#elif defined(SO_ACCEPTFILTER)
|
#elif defined(SO_ACCEPTFILTER)
|
||||||
struct accept_filter_arg afa;
|
struct accept_filter_arg afa;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user