summaryrefslogtreecommitdiff
path: root/package/pjsip/patches/100-pjsua_acc__snprintf.patch
diff options
context:
space:
mode:
authorblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>2012-02-14 15:05:55 +0000
committerblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>2012-02-14 15:05:55 +0000
commit059d9f49a5e4c1620fc256723847e97783a22b0c (patch)
treeae8cbed97e819959becc7370bcbcc727d142c167 /package/pjsip/patches/100-pjsua_acc__snprintf.patch
parentdecfe8e3f5f428d34cae5735af6919ee39f81508 (diff)
[pjsip] bump to 1.12, merge improved lantiq aud_dev driver
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@30520 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/pjsip/patches/100-pjsua_acc__snprintf.patch')
-rw-r--r--package/pjsip/patches/100-pjsua_acc__snprintf.patch92
1 files changed, 0 insertions, 92 deletions
diff --git a/package/pjsip/patches/100-pjsua_acc__snprintf.patch b/package/pjsip/patches/100-pjsua_acc__snprintf.patch
deleted file mode 100644
index 929ecc94dd..0000000000
--- a/package/pjsip/patches/100-pjsua_acc__snprintf.patch
+++ /dev/null
@@ -1,92 +0,0 @@
---- a/pjsip/src/pjsua-lib/pjsua_acc.c
-+++ b/pjsip/src/pjsua-lib/pjsua_acc.c
-@@ -511,7 +511,7 @@ PJ_DEF(pj_status_t) pjsua_acc_add_local(
- "<sip:%s%.*s%s:%d%s>",
- beginquote,
- (int)t->local_name.host.slen,
-- t->local_name.host.ptr,
-+ t->local_name.host.slen ? t->local_name.host.ptr : "",
- endquote,
- t->local_name.port,
- transport_param);
-@@ -1327,19 +1327,19 @@ static pj_bool_t acc_check_nat_addr(pjsu
- len = pj_ansi_snprintf(tmp, PJSIP_MAX_URL_SIZE,
- "<sip:%.*s%s%s%.*s%s:%d;transport=%s%.*s%s>%.*s",
- (int)acc->user_part.slen,
-- acc->user_part.ptr,
-+ acc->user_part.slen ? acc->user_part.ptr : "",
- (acc->user_part.slen? "@" : ""),
- beginquote,
- (int)via_addr->slen,
-- via_addr->ptr,
-+ via_addr->slen ? via_addr->ptr : "",
- endquote,
- rport,
- tp->type_name,
- (int)acc->cfg.contact_uri_params.slen,
-- acc->cfg.contact_uri_params.ptr,
-+ acc->cfg.contact_uri_params.slen ? acc->cfg.contact_uri_params.ptr : "",
- ob,
- (int)acc->cfg.contact_params.slen,
-- acc->cfg.contact_params.ptr);
-+ acc->cfg.contact_params.slen ? acc->cfg.contact_params.ptr : "");
- if (len < 1) {
- PJ_LOG(1,(THIS_FILE, "URI too long"));
- pj_pool_release(pool);
-@@ -2467,23 +2467,23 @@ PJ_DEF(pj_status_t) pjsua_acc_create_uac
- contact->slen = pj_ansi_snprintf(contact->ptr, PJSIP_MAX_URL_SIZE,
- "%.*s%s<%s:%.*s%s%s%.*s%s:%d%s%.*s%s>%.*s",
- (int)acc->display.slen,
-- acc->display.ptr,
-+ acc->display.slen ? acc->display.ptr : "",
- (acc->display.slen?" " : ""),
- (secure ? PJSUA_SECURE_SCHEME : "sip"),
- (int)acc->user_part.slen,
-- acc->user_part.ptr,
-+ acc->user_part.slen ? acc->user_part.ptr : "",
- (acc->user_part.slen?"@":""),
- beginquote,
- (int)local_addr.slen,
-- local_addr.ptr,
-+ local_addr.slen ? local_addr.ptr : "",
- endquote,
- local_port,
- transport_param,
- (int)acc->cfg.contact_uri_params.slen,
-- acc->cfg.contact_uri_params.ptr,
-+ acc->cfg.contact_uri_params.slen ? acc->cfg.contact_uri_params.ptr : "",
- ob,
- (int)acc->cfg.contact_params.slen,
-- acc->cfg.contact_params.ptr);
-+ acc->cfg.contact_params.slen ? acc->cfg.contact_params.ptr : "");
-
- return PJ_SUCCESS;
- }
-@@ -2625,22 +2625,22 @@ PJ_DEF(pj_status_t) pjsua_acc_create_uas
- contact->slen = pj_ansi_snprintf(contact->ptr, PJSIP_MAX_URL_SIZE,
- "%.*s%s<%s:%.*s%s%s%.*s%s:%d%s%.*s>%.*s",
- (int)acc->display.slen,
-- acc->display.ptr,
-+ acc->display.slen ? acc->display.ptr : "",
- (acc->display.slen?" " : ""),
- (secure ? PJSUA_SECURE_SCHEME : "sip"),
- (int)acc->user_part.slen,
-- acc->user_part.ptr,
-+ acc->user_part.slen ? acc->user_part.ptr : "",
- (acc->user_part.slen?"@":""),
- beginquote,
- (int)local_addr.slen,
-- local_addr.ptr,
-+ local_addr.slen ? local_addr.ptr : "",
- endquote,
- local_port,
- transport_param,
- (int)acc->cfg.contact_uri_params.slen,
-- acc->cfg.contact_uri_params.ptr,
-+ acc->cfg.contact_uri_params.slen ? acc->cfg.contact_uri_params.ptr : "",
- (int)acc->cfg.contact_params.slen,
-- acc->cfg.contact_params.ptr);
-+ acc->cfg.contact_params.slen ? acc->cfg.contact_params.ptr : "");
-
- return PJ_SUCCESS;
- }