Browse code

fixed merging bug for STATS

Jiri Kuthan authored on 23/11/2001 09:40:55
Showing 2 changed files
... ...
@@ -28,7 +28,7 @@ NAME=ser
28 28
 # DEBUG compiles in some extra debugging code
29 29
 # OLD_PARSER uses the old and stable parser (from ser 8.3.2)
30 30
 # DNS_IP_HACK faster ip address resolver for ip strings (e.g "127.0.0.1")
31
-DEFS=-DNOCR -DMACROEATER -DDNS_IP_HACK #-DNO_DEBUG#-DSTATS -DNO_DEBUG 
31
+DEFS=-DNOCR -DMACROEATER -DDNS_IP_HACK -DSTATS #-DNO_DEBUG#-DSTATS -DNO_DEBUG 
32 32
 #-DNO_LOG
33 33
 
34 34
 PROFILE=  # -pg #set this if you want profiling
... ...
@@ -27,13 +27,13 @@ unsigned int msg_no=0;
27 27
 int receive_msg(char* buf, unsigned int len, unsigned long src_ip)
28 28
 {
29 29
 	struct sip_msg* msg;
30
+#ifdef STATS
31
+	int skipped = 1;
32
+#endif
30 33
 
31 34
 	msg=pkg_malloc(sizeof(struct sip_msg));
32 35
 	if (msg==0) goto error1;
33 36
 	msg_no++;
34
-#ifdef STATS
35
-	skipped = 1;
36
-#endif
37 37
 
38 38
 	memset(msg,0, sizeof(struct sip_msg)); /* init everything to 0 */
39 39
 	/* fill in msg */