miniupnpd/portinuse.c: minor cosmetic changes

This commit is contained in:
Thomas Bernard 2014-04-14 09:17:10 +02:00
parent eea9188eef
commit 1140e1bddb
1 changed files with 2 additions and 2 deletions

View File

@ -263,11 +263,10 @@ static struct nlist list[] = {
} }
} }
} }
if(buf) { if (buf) {
free(buf); free(buf);
buf = NULL; buf = NULL;
} }
/* #elif __NetBSD__ */
#elif defined(__FreeBSD__) #elif defined(__FreeBSD__)
const char *varname; const char *varname;
struct xinpgen *xig, *exig; struct xinpgen *xig, *exig;
@ -366,6 +365,7 @@ static struct nlist list[] = {
free(buf); free(buf);
buf = NULL; buf = NULL;
} }
/* #elif __NetBSD__ */
#else #else
/* TODO : NetBSD / Darwin (OS X) / Solaris code */ /* TODO : NetBSD / Darwin (OS X) / Solaris code */
#error "No port_in_use() implementation available for this OS" #error "No port_in_use() implementation available for this OS"