Commit fa9cb523 authored by Pekka Pessi's avatar Pekka Pessi

nth: using <sofia-sip/su_string.h> functions

darcs-hash:20090108202939-db55f-6e1d3baa58cb170346df1b7dfd6d56cdc6b00f67.gz
parent a6d87411
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
#include <assert.h> #include <assert.h>
#include <errno.h> #include <errno.h>
#include <sofia-sip/string0.h> #include <sofia-sip/su_string.h>
/** @internal SU message argument structure type */ /** @internal SU message argument structure type */
#define SU_MSG_ARG_T union sm_arg_u #define SU_MSG_ARG_T union sm_arg_u
...@@ -753,7 +753,7 @@ url_string_t const *hc_request_complete(nth_client_t * hc, ...@@ -753,7 +753,7 @@ url_string_t const *hc_request_complete(nth_client_t * hc,
if (host && if (host &&
(host_cmp(host->h_host, u->url_host) || (host_cmp(host->h_host, u->url_host) ||
str0cmp(host->h_port, u->url_port))) su_strcmp(host->h_port, u->url_port)))
host = NULL; host = NULL;
if (host == NULL && u->url_host) { if (host == NULL && u->url_host) {
...@@ -777,7 +777,7 @@ url_string_t const *hc_request_complete(nth_client_t * hc, ...@@ -777,7 +777,7 @@ url_string_t const *hc_request_complete(nth_client_t * hc,
else if (rq && name && strcmp(name, rq->rq_method_name)) else if (rq && name && strcmp(name, rq->rq_method_name))
rq = NULL; rq = NULL;
if (rq && version && strcasecmp(version, rq->rq_version)) if (rq && version && !su_casematch(version, rq->rq_version))
rq = NULL; rq = NULL;
if (!hc->hc_route_url) { if (!hc->hc_route_url) {
......
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
#include "config.h" #include "config.h"
#include <sofia-sip/string0.h> #include <sofia-sip/su_string.h>
#include <sofia-sip/su.h> #include <sofia-sip/su.h>
typedef struct server_s server_t; typedef struct server_s server_t;
...@@ -592,7 +592,7 @@ nth_site_t **site_get_host(nth_site_t **list, char const *host, char const *port ...@@ -592,7 +592,7 @@ nth_site_t **site_get_host(nth_site_t **list, char const *host, char const *port
for (; (site = *list); list = &site->site_next) { for (; (site = *list); list = &site->site_next) {
if (host_cmp(host, site->site_url->url_host) == 0 && if (host_cmp(host, site->site_url->url_host) == 0 &&
str0cmp(port, site->site_url->url_port) == 0) { su_strcmp(port, site->site_url->url_port) == 0) {
break; break;
} }
} }
......
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