Check all Address statements when making outgoing connections.
[tinc] / src / upnp.c
index 3e90210..5e41d1b 100644 (file)
@@ -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();