Module: sip-router
Branch: mariusbucur/dmq
Commit: 5093fc039fed1dc8f974ca797e1f0708ae1df287
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=5093fc0…
Author: Marius Bucur <marius(a)marius-bucur.ro>
Committer: Marius Bucur <marius(a)marius-bucur.ro>
Date: Sat Jun 4 10:37:26 2011 +0300
fixed some typos
---
modules_k/htable/ht_api.c | 4 ++--
modules_k/htable/ht_var.c | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/modules_k/htable/ht_api.c b/modules_k/htable/ht_api.c
index 614fdf6..9681867 100644
--- a/modules_k/htable/ht_api.c
+++ b/modules_k/htable/ht_api.c
@@ -718,7 +718,7 @@ int ht_table_spec(char *spec)
unsigned int autoexpire = 0;
unsigned int size = 4;
unsigned int dbmode = 0;
- unsigne int dmq = 0;
+ unsigned int dmq = 0;
str in;
str tok;
param_t *pit=NULL;
@@ -771,7 +771,7 @@ int ht_table_spec(char *spec)
LM_DBG("htable [%.*s] - initval [%d]\n", name.len, name.s,
ival.n);
} else if(tok.len==3 && strncmp(tok.s, "dmq", 3)==0) {
- if(str2sint(&tok, &dmq)!=0)
+ if(str2int(&tok, &dmq)!=0)
goto error;
LM_DBG("htable [%.*s] - dmq [%d]\n", name.len, name.s,
dmq);
diff --git a/modules_k/htable/ht_var.c b/modules_k/htable/ht_var.c
index 368e9ae..52b6ba3 100644
--- a/modules_k/htable/ht_var.c
+++ b/modules_k/htable/ht_var.c
@@ -113,7 +113,7 @@ int pv_set_ht_cell(struct sip_msg* msg, pv_param_t *param,
LM_ERR("cannot get $ht name\n");
return -1;
}
- if(hpv->ht->usedmq) {
+ if(hpv->ht->dmq) {
serialized_ht.s = pkg_malloc(MAX_HT_SERIALIZE_BUF);
serialized_ht.len = MAX_HT_SERIALIZE_BUF;
if(serialize_ht_pair(&htname, val, &hpv->htname, &serialized_ht) < 0)
{