Suppress compiler warning in CreateClientRequestPacket.

It is a static function and is called with AF_INET or AF_INET6,
so there is no real problem.
This commit is contained in:
Yoichi NAKAYAMA 2012-03-11 12:37:38 +09:00
parent c67187ac94
commit 1b38cc963a

View File

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