X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fupnp.c;h=5e41d1b653996d16dbf0e81016341fa17a2e95ab;hb=c926b3b84317b220828c3d8b6275754c5003dfcf;hp=3e902100150103b5690707e3aed50233ed616b93;hpb=f6e87ab476a0faf8b124ecaaa27f967d825e6457;p=tinc diff --git a/src/upnp.c b/src/upnp.c index 3e902100..5e41d1b6 100644 --- a/src/upnp.c +++ b/src/upnp.c @@ -61,7 +61,7 @@ static struct UPNPDev *upnp_discover(int delay, int *error) { #else -#if MINIUPNPC_API_VERSION > 15 +#if MINIUPNPC_API_VERSION > 17 #warning "The version of libminiupnpc you're building against seems to be too recent. Expect trouble." #endif @@ -148,6 +148,8 @@ static void upnp_refresh() { } static void *upnp_thread(void *data) { + (void)data; + while(true) { time_t start = time(NULL); upnp_refresh();