miniupnpd: fix warnings

This commit is contained in:
Thomas Bernard 2018-03-13 11:53:33 +01:00
parent dd2aa84204
commit 9516c9a007
2 changed files with 4 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $Id: minissdp.c,v 1.90 2018/01/16 00:50:47 nanard Exp $ */
/* $Id: minissdp.c,v 1.92 2018/03/13 10:52:39 nanard Exp $ */
/* vim: tabstop=4 shiftwidth=4 noexpandtab
* MiniUPnP project
* http://miniupnp.free.fr/ or https://miniupnp.tuxfamily.org/
@ -265,7 +265,7 @@ OpenAndConfSSDPReceiveSocket(int ipv6)
{
syslog(LOG_WARNING,
"Failed to add IPv6 multicast membership for interface %s",
lan_addr->str ? lan_addr->str : "NULL");
strlen(lan_addr->str) ? lan_addr->str : "NULL");
}
}
}

View File

@ -1,4 +1,4 @@
/* $Id: upnppinhole.c,v 1.12 2018/03/13 10:24:55 nanard Exp $ */
/* $Id: upnppinhole.c,v 1.13 2018/03/13 10:49:13 nanard Exp $ */
/* MiniUPnP project
* http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/
* (c) 2006-2018 Thomas Bernard
@ -23,6 +23,7 @@
#include "upnpredirect.h"
#include "upnpglobalvars.h"
#include "upnpevents.h"
#include "upnputils.h"
#include "upnppinhole.h"
#ifdef __APPLE__
/* XXX - Apple version of PF API seems to differ from what