Suppress compiler warning in CreateClientRequestPacketUlaGua.

It is a static function and is called with AF_INET6,
so there is no real problem.
This commit is contained in:
Yoichi NAKAYAMA 2012-03-11 21:35:03 +09:00
parent 2eb3e069ba
commit 8e39b2af85

View File

@ -404,6 +404,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;