miniupnpc: Fix compile warning: unused parameter
receivedata.c: In function ‘receivedata’: receivedata.c:35:41: warning: unused parameter ‘scope_id’ [-Wunused-parameter] int timeout, unsigned int * scope_id) ~~~~~~~~~~~~~~~^~~~~~~~
This commit is contained in:
parent
e768e1555e
commit
d693584fdb
|
@ -92,7 +92,13 @@ receivedata(SOCKET socket,
|
|||
#endif /* DEBUG */
|
||||
if(scope_id)
|
||||
*scope_id = src_addr6->sin6_scope_id;
|
||||
} else {
|
||||
if(scope_id)
|
||||
*scope_id = 0;
|
||||
}
|
||||
#else /* MINIUPNPC_GET_SRC_ADDR */
|
||||
if(scope_id)
|
||||
*scope_id = 0;
|
||||
#endif /* MINIUPNPC_GET_SRC_ADDR */
|
||||
return n;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue