From 802ad22f4d45512c1db6d024d674ed5aa1bad75c Mon Sep 17 00:00:00 2001 From: Thomas Bernard Date: Fri, 28 Feb 2014 16:40:20 +0100 Subject: [PATCH] miniupnpd: minor stuff (remove warning, add debug log) --- miniupnpd/testasyncsendto.c | 4 ++-- miniupnpd/upnpsoap.c | 6 +++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/miniupnpd/testasyncsendto.c b/miniupnpd/testasyncsendto.c index 7a4eb6e..e413bd7 100644 --- a/miniupnpd/testasyncsendto.c +++ b/miniupnpd/testasyncsendto.c @@ -1,4 +1,4 @@ -/* $Id: $ */ +/* $Id: testasyncsendto.c,v 1.2 2014/02/25 11:00:14 nanard Exp $ */ /* MiniUPnP project * http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/ * (c) 2006-2014 Thomas Bernard @@ -46,7 +46,7 @@ int test(void) memset(&addr, 0, sizeof(struct sockaddr_in)); addr.sin_family = AF_INET; addr.sin_addr.s_addr = INADDR_ANY; - if(bind(s, &addr, sizeof(addr)) < 0) { + if(bind(s, (struct sockaddr *)&addr, sizeof(addr)) < 0) { syslog(LOG_ERR, "bind(): %m"); close(s); return 1; diff --git a/miniupnpd/upnpsoap.c b/miniupnpd/upnpsoap.c index a8023c0..fc08ecb 100644 --- a/miniupnpd/upnpsoap.c +++ b/miniupnpd/upnpsoap.c @@ -1,4 +1,4 @@ -/* $Id: upnpsoap.c,v 1.119 2013/08/19 16:16:00 nanard Exp $ */ +/* $Id: upnpsoap.c,v 1.121 2014/02/28 15:01:31 nanard Exp $ */ /* MiniUPnP project * http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/ * (c) 2006-2013 Thomas Bernard @@ -1910,6 +1910,10 @@ ExecuteSoapAction(struct upnphttp * h, const char * action, int n) len = strlen(soapMethods[i].methodName); if(strncmp(p, soapMethods[i].methodName, len) == 0) { +#ifdef DEBUG + syslog(LOG_DEBUG, "Remote Call of SoapMethod '%s'\n", + soapMethods[i].methodName); +#endif soapMethods[i].methodImpl(h, soapMethods[i].methodName); return; }