Suppress compiler warning in CreateClientRequestPacketUlaGua.

It is a static function and is called with AF_INET6,
so there is no real problem.
(cherry picked from commit 8e39b2af85512bd56a5d593fbd83f8ab227c0097)
This commit is contained in:
Yoichi NAKAYAMA 2012-03-11 21:35:03 +09:00 committed by Marcelo Roberto Jimenez
parent d56a68d771
commit 12b88a9fbf

View File

@ -412,6 +412,8 @@ static int CreateClientRequestPacketUlaGua(
} else if (AddressFamily == AF_INET6) {
rc = snprintf(TempBuf, sizeof(TempBuf), "HOST: [%s]:%d\r\n",
SSDP_IPV6_SITELOCAL, SSDP_PORT);
} else {
return UPNP_E_INVALID_ARGUMENT;
}
if (rc < 0 || (unsigned int) rc >= sizeof(TempBuf))
return UPNP_E_INTERNAL_ERROR;