diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2021-11-19 12:00:37 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2021-11-19 12:00:37 +0100 |
commit | 432ac521ef50ca41a81cffc1770cb46f72a422f6 (patch) | |
tree | be637a1ac10bf6c248a28880a3b9352ae47e5ecf /thirdparty/miniupnpc/src/upnpdev.c | |
parent | a777f01052161f0ea3b1344e605ac4222498395c (diff) |
miniupnpc: Update to version 2.2.3
Library code and public headers are now properly separated, we can fix include paths
to remove the redundant subfolder.
Diffstat (limited to 'thirdparty/miniupnpc/src/upnpdev.c')
-rw-r--r-- | thirdparty/miniupnpc/src/upnpdev.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/thirdparty/miniupnpc/src/upnpdev.c b/thirdparty/miniupnpc/src/upnpdev.c new file mode 100644 index 0000000000..d89a9934c3 --- /dev/null +++ b/thirdparty/miniupnpc/src/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; + } +} + |