Browse code

*** empty log message ***

Bogdan-Andrei Iancu authored on 03/12/2001 22:58:21
Showing 3 changed files
... ...
@@ -7,7 +7,7 @@
7 7
 
8 8
 auto_gen=lex.yy.c cfg.tab.c   #lexx, yacc etc
9 9
 exclude_modules=CVS
10
-sources=$(filter-out $(auto_gen), $(wildcard *.c)) $(auto_gen) 
10
+sources=$(filter-out $(auto_gen), $(wildcard *.c)) $(auto_gen)
11 11
 objs=$(sources:.c=.o)
12 12
 depends=$(sources:.c=.d)
13 13
 modules=$(filter-out $(addprefix modules/, $(exclude_modules)), \
... ...
@@ -33,10 +33,8 @@ NAME=ser
33 33
 # PKG_MALLOC uses a faster malloc (exclusive w/ USE_SHM_MEM)
34 34
 # USE_SHM_MEM all pkg_malloc => shm_malloc (most mallocs use a common sh. mem.
35 35
 #           segment); don't define PKG_MALLOC if you want this!
36
-DEFS=-DTHREAD -DNOCR -DMACROEATER -DDNS_IP_HACK  -DSHM_MEM \
37
-	 -DPKG_MALLOC -DNO_DEBUG
38
-# -DUSE_SHM_MEM
39
-#-DNO_DEBUG 
36
+DEFS=-DTHREAD -DNOCR -DMACROEATER -DDNS_IP_HACK  -DSHM_MEM -DUSE_SHM_MEM \
37
+	 -DPKG_MALLOC  -DNO_DEBUG
40 38
 #-DPKG_MALLOC
41 39
 #-DNO_DEBUG#-DSTATS -DNO_DEBUG 
42 40
 #-DNO_LOG
... ...
@@ -105,7 +105,6 @@ struct s_table* init_hash_table()
105 105
    for(  i=0 ; i<NR_OF_TIMER_LISTS ; i++ )
106 106
       init_timerlist_lock( hash_table, i );
107 107
 
108
-   return hash_table;
109 108
 //#ifdef THREAD
110 109
    /* starts the timer thread/ process */
111 110
    pthread_create( &thread, NULL, timer_routine, hash_table );
... ...
@@ -215,54 +215,6 @@ static int w_t_send_reply(struct sip_msg* msg, char* str, char* str2)
215 215
 
216 216
 
217 217
 
218
-#if 0
219
-static int test_f(struct sip_msg* msg, char* s1, char* s2)
220
-{
221
-	struct sip_msg* tst;
222
-	struct hdr_field* hf;
223
-
224
-	DBG("in test_f\n");
225
-
226
-	tst=sip_msg_cloner(msg);
227
-	DBG("after cloner...\n");
228
-	DBG("first_line: <%s> <%s> <%s>\n", 
229
-			tst->first_line.u.request.method.s,
230
-			tst->first_line.u.request.uri.s,
231
-			tst->first_line.u.request.version.s
232
-		);
233
-	if (tst->h_via1)
234
-		DBG("via1: <%s> <%s>\n", tst->h_via1->name.s, tst->h_via1->body.s);
235
-	if (tst->h_via2)
236
-		DBG("via2: <%s> <%s>\n", tst->h_via2->name.s, tst->h_via2->body.s);
237
-	if (tst->callid)
238
-		DBG("callid: <%s> <%s>\n", tst->callid->name.s, tst->callid->body.s);
239
-	if (tst->to)
240
-		DBG("to: <%s> <%s>\n", tst->to->name.s, tst->to->body.s);
241
-	if (tst->cseq)
242
-		DBG("cseq: <%s> <%s>\n", tst->cseq->name.s, tst->cseq->body.s);
243
-	if (tst->from)
244
-		DBG("from: <%s> <%s>\n", tst->from->name.s, tst->from->body.s);
245
-	if (tst->contact)
246
-		DBG("contact: <%s> <%s>\n", tst->contact->name.s,tst->contact->body.s);
247
-
248
-	DBG("headers:\n");
249
-	for (hf=tst->headers; hf; hf=hf->next){
250
-		DBG("header %d: <%s> <%s>\n", hf->type, hf->name.s, hf->body.s);
251
-	}
252
-	if (tst->eoh!=0) return;
253
-	DBG("parsing all...\n"); 
254
-	if (parse_headers(tst, HDR_EOH)==-1)
255
-		DBG("error\n");
256
-	else{
257
-		DBG("new headers...");
258
-		for (hf=tst->headers; hf; hf=hf->next){
259
-			DBG("header %d: <%s> <%s>\n", hf->type, hf->name.s, hf->body.s);
260
-		}
261
-	}
262 218
 
263
-	free(tst);
264
-}
265
-
266
-#endif
267 219
 
268 220