Make natt_open_port a static function
This commit is contained in:
parent
e6ee2527e5
commit
5576115389
|
@ -65,12 +65,6 @@ bool natt_new(struct natt_status *status);
|
|||
/** Free a NAT traversal status object */
|
||||
void natt_free(struct natt_status *status);
|
||||
|
||||
/**
|
||||
* Make a port forwarding request. This may finish immediately or just send a
|
||||
* request to the network. */
|
||||
bool natt_open_port(struct natt_status *status, struct sockaddr *addr,
|
||||
socklen_t addrlen, enum socket_protocol proto);
|
||||
|
||||
/**
|
||||
* Make a port forwarding request when only the port is known. Forwards any
|
||||
* address it can find. */
|
||||
|
|
|
@ -94,7 +94,8 @@ void natt_free(struct natt_status *status)
|
|||
/* Nothing */
|
||||
}
|
||||
|
||||
bool natt_open_port(struct natt_status *status, struct sockaddr *addr, socklen_t addrlen, enum socket_protocol proto)
|
||||
static bool natt_open_port(struct natt_status *status,
|
||||
struct sockaddr *addr, socklen_t addrlen, enum socket_protocol proto)
|
||||
{
|
||||
#ifndef HAVE_SOCKET_LEGACY
|
||||
#if HAVE_MINIUPNPC
|
||||
|
|
Loading…
Reference in New Issue