Browse Source

fixed some typos

Marius Bucur 14 years ago
parent
commit
5093fc039f
2 changed files with 3 additions and 3 deletions
  1. 2 2
      modules_k/htable/ht_api.c
  2. 1 1
      modules_k/htable/ht_var.c

+ 2 - 2
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);

+ 1 - 1
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) {