File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / miniupnpc / src / upnpdev.c
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Wed Sep 27 11:21:37 2023 UTC (9 months, 1 week ago) by misho
Branches: miniupnpc, MAIN
CVS tags: v2_2_5p0, HEAD
Version 2.2.5p0

    1: /* $Id: upnpdev.c,v 1.1.1.1 2023/09/27 11:21:37 misho Exp $ */
    2: /* Project : miniupnp
    3:  * Web : http://miniupnp.free.fr/
    4:  * Author : Thomas BERNARD
    5:  * copyright (c) 2005-2015 Thomas Bernard
    6:  * This software is subjet to the conditions detailed in the
    7:  * provided LICENSE file. */
    8: #include <stdlib.h>
    9: #include "upnpdev.h"
   10: 
   11: /* freeUPNPDevlist() should be used to
   12:  * free the chained list returned by upnpDiscover() */
   13: void freeUPNPDevlist(struct UPNPDev * devlist)
   14: {
   15: 	struct UPNPDev * next;
   16: 	while(devlist)
   17: 	{
   18: 		next = devlist->pNext;
   19: 		free(devlist);
   20: 		devlist = next;
   21: 	}
   22: }
   23: 

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>