diff options
author | Riccardo Spagni <ric@spagni.net> | 2015-12-30 10:00:50 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2015-12-30 10:00:50 +0200 |
commit | bd8e0fd2a11efe8c0e92ac3a8b8373b87a93ed95 (patch) | |
tree | 2e6e0a1dba09939058f9ad930ce2fc3963777631 /external/miniupnpc/upnpdev.c | |
parent | updated miniupnpc (diff) | |
download | monero-bd8e0fd2a11efe8c0e92ac3a8b8373b87a93ed95.tar.xz |
add missing miniupnpc files, modify cmake to not build miniupnpc tests and to fix an issue with finding miniupnpcstrings
Diffstat (limited to 'external/miniupnpc/upnpdev.c')
-rw-r--r-- | external/miniupnpc/upnpdev.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/external/miniupnpc/upnpdev.c b/external/miniupnpc/upnpdev.c new file mode 100644 index 000000000..d89a9934c --- /dev/null +++ b/external/miniupnpc/upnpdev.c @@ -0,0 +1,23 @@ +/* $Id: upnpdev.c,v 1.1 2015/08/28 12:14:19 nanard Exp $ */ +/* Project : miniupnp + * Web : http://miniupnp.free.fr/ + * Author : Thomas BERNARD + * copyright (c) 2005-2015 Thomas Bernard + * This software is subjet to the conditions detailed in the + * provided LICENSE file. */ +#include <stdlib.h> +#include "upnpdev.h" + +/* freeUPNPDevlist() should be used to + * free the chained list returned by upnpDiscover() */ +void freeUPNPDevlist(struct UPNPDev * devlist) +{ + struct UPNPDev * next; + while(devlist) + { + next = devlist->pNext; + free(devlist); + devlist = next; + } +} + |