miniupnpd/minissdp.c: remove warning if ipv6 is disabled
This commit is contained in:
parent
28e3bda6dd
commit
55c959247b
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: minissdp.c,v 1.66 2014/04/20 16:34:26 nanard Exp $ */
|
/* $Id: minissdp.c,v 1.69 2014/09/06 08:17:01 nanard Exp $ */
|
||||||
/* MiniUPnP project
|
/* MiniUPnP project
|
||||||
* http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/
|
* http://miniupnp.free.fr/ or http://miniupnp.tuxfamily.org/
|
||||||
* (c) 2006-2014 Thomas Bernard
|
* (c) 2006-2014 Thomas Bernard
|
||||||
|
@ -26,6 +26,7 @@
|
||||||
#include "getroute.h"
|
#include "getroute.h"
|
||||||
#include "asyncsendto.h"
|
#include "asyncsendto.h"
|
||||||
#include "codelength.h"
|
#include "codelength.h"
|
||||||
|
#include "macros.h"
|
||||||
|
|
||||||
/* SSDP ip/port */
|
/* SSDP ip/port */
|
||||||
#define SSDP_PORT (1900)
|
#define SSDP_PORT (1900)
|
||||||
|
@ -579,6 +580,9 @@ SendSSDPNotifies(int s, const char * host, unsigned short http_port,
|
||||||
const char * dest_str;
|
const char * dest_str;
|
||||||
int i=0;
|
int i=0;
|
||||||
char ver_str[4];
|
char ver_str[4];
|
||||||
|
#ifndef ENABLE_IPV6
|
||||||
|
UNUSED(ipv6);
|
||||||
|
#endif
|
||||||
|
|
||||||
memset(&sockname, 0, sizeof(sockname));
|
memset(&sockname, 0, sizeof(sockname));
|
||||||
#ifdef ENABLE_IPV6
|
#ifdef ENABLE_IPV6
|
||||||
|
@ -1113,11 +1117,11 @@ SendSSDPGoodbye(int * sockets, int n_sockets)
|
||||||
struct sockaddr_in6 sockname6;
|
struct sockaddr_in6 sockname6;
|
||||||
struct sockaddr * sockname;
|
struct sockaddr * sockname;
|
||||||
socklen_t socknamelen;
|
socklen_t socknamelen;
|
||||||
|
int ipv6 = 0;
|
||||||
#endif
|
#endif
|
||||||
int i, j;
|
int i, j;
|
||||||
char ver_str[4];
|
char ver_str[4];
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
int ipv6 = 0;
|
|
||||||
const char * dest_str;
|
const char * dest_str;
|
||||||
|
|
||||||
memset(&sockname4, 0, sizeof(struct sockaddr_in));
|
memset(&sockname4, 0, sizeof(struct sockaddr_in));
|
||||||
|
|
Loading…
Reference in New Issue