projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix tinc-up generation on windows
[tinc]
/
src
/
upnp.c
diff --git
a/src/upnp.c
b/src/upnp.c
index
3e90210
..
5e41d1b
100644
(file)
--- a/
src/upnp.c
+++ b/
src/upnp.c
@@
-61,7
+61,7
@@
static struct UPNPDev *upnp_discover(int delay, int *error) {
#else
#else
-#if MINIUPNPC_API_VERSION > 1
5
+#if MINIUPNPC_API_VERSION > 1
7
#warning "The version of libminiupnpc you're building against seems to be too recent. Expect trouble."
#endif
#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) {
}
static void *upnp_thread(void *data) {
+ (void)data;
+
while(true) {
time_t start = time(NULL);
upnp_refresh();
while(true) {
time_t start = time(NULL);
upnp_refresh();