Commit 930ab129 authored by Pekka Pessi's avatar Pekka Pessi

nua_register.c, sip_util.c, sres.c, url.c: fixed warnings on SUNWspro.

darcs-hash:20070222203510-88462-a2606fb7baad6e7b2bba4dfe25a7d10e6887f2f9.gz
parent b790f62e
......@@ -1884,10 +1884,11 @@ sip_contact_t *nua_handle_contact_by_via(nua_handle_t *nh,
/* Make transport parameter lowercase */
if (strlen(transport) < (sizeof _transport)) {
char *s = strcpy(_transport, transport);
short c;
for (s = _transport; *s && *s != ';'; s++)
if (isupper(*s))
*s = tolower(*s);
for (s = _transport; (c = *s) && c != ';'; s++)
if (isupper(c))
*s = tolower(c);
transport = _transport;
}
......
......@@ -258,10 +258,11 @@ sip_contact_string_from_via(su_home_t *home,
/* Make transport parameter lowercase */
if (transport && strlen(transport) < (sizeof _transport)) {
char *s = strcpy(_transport, transport);
short c;
for (s = _transport; *s && *s != ';'; s++)
if (isupper(*s))
*s = tolower(*s);
for (s = _transport; (c = *s) && c != ';'; s++)
if (isupper(c))
*s = tolower(c);
transport = _transport;
}
......
......@@ -2297,7 +2297,7 @@ sres_parse_options(sres_config_t *c, char const *value)
value += strspn(value, " \t");
if (n > 65536) {
SU_DEBUG_3(("sres: %s: invalid %*.s\n", c->c_filename,
SU_DEBUG_3(("sres: %s: invalid %*.0s\n", c->c_filename,
(int)(len + extra), b));
continue;
}
......@@ -2322,7 +2322,7 @@ sres_parse_options(sres_config_t *c, char const *value)
else if (MATCH("no-edns0")) c->c_opt.edns = edns_not_supported;
else if (MATCH("edns0")) c->c_opt.edns = edns0_configured;
else {
SU_DEBUG_3(("sres: %s: unknown option %*.s\n",
SU_DEBUG_3(("sres: %s: unknown option %*.0s\n",
c->c_filename, (int)(len + extra), b));
}
}
......@@ -2471,7 +2471,7 @@ void sres_servers_close(sres_resolver_t *res,
if (!servers[i])
break;
if (servers[i]->dns_socket != -1) {
if (servers[i]->dns_socket != INVALID_SOCKET) {
if (res->res_updcb)
res->res_updcb(res->res_async, INVALID_SOCKET, servers[i]->dns_socket);
sres_close(servers[i]->dns_socket);
......@@ -2501,7 +2501,7 @@ sres_socket_t sres_server_socket(sres_resolver_t *res, sres_server_t *dns)
int family = dns->dns_addr->ss_family;
sres_socket_t s;
if (dns->dns_socket != -1)
if (dns->dns_socket != INVALID_SOCKET)
return dns->dns_socket;
s = socket(family, SOCK_DGRAM, IPPROTO_UDP);
......
......@@ -1610,7 +1610,7 @@ int url_cmp(url_t const *a, url_t const *b)
static
int url_tel_cmp_numbers(char const *A, char const *B)
{
char a, b;
short a, b;
int rv;
while (*A && *B) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment