Browse code

minor fix in build_res_f_req

Jiri Kuthan authored on 19/02/2002 22:38:36
Showing 4 changed files
... ...
@@ -11,7 +11,7 @@ auto_gen=lex.yy.c cfg.tab.c   #lexx, yacc etc
11 11
 include Makefile.sources
12 12
 
13 13
 exclude_modules=CVS usrloc mysql auth
14
-static_modules=
14
+static_modules=tm
15 15
 static_modules_path=$(addprefix modules/, $(static_modules))
16 16
 extra_sources=$(wildcard $(addsuffix /*.c, $(static_modules_path)))
17 17
 extra_objs=$(extra_sources:.c=.o)
... ...
@@ -1,5 +1,4 @@
1 1
 #
2
-# $Id$
3 2
 #
4 3
 # makefile defs (CC, LD,a.s.o)
5 4
 #
... ...
@@ -60,7 +59,7 @@ ARCH = $(shell uname -m |sed -e s/i.86/i386/ -e s/sun4u/sparc64/ )
60 60
 DEFS+= -DNAME='"$(NAME)"' -DVERSION='"$(RELEASE)"' -DARCH='"$(ARCH)"' \
61 61
 	 -DOS='"$(OS)"' -DCOMPILER='"$(CC_VER)"'\
62 62
 	 -DDNS_IP_HACK  -DPKG_MALLOC -DSHM_MEM  -DSHM_MMAP \
63
-	 -DUSE_SYNONIM -DF_MALLOC \
63
+	 -DUSE_SYNONIM -DF_MALLOC -DSTATIC_TM \
64 64
 	 #-DEXTRA_DEBUG 
65 65
 	 #-DVQ_MALLOC  -DDBG_LOCK  #-DSTATS
66 66
 	 #-DDBG_QM_MALLOC #-DNO_DEBUG
... ...
@@ -82,8 +81,8 @@ endif
82 82
 
83 83
 
84 84
 #PROFILE=  -pg #set this if you want profiling
85
-#mode = debug
86
-mode = release
85
+mode = debug
86
+#mode = release
87 87
 
88 88
 # platform dependent settings
89 89
 
... ...
@@ -16,5 +16,5 @@ objs=$(sources:.c=.o)
16 16
 extra_objs=
17 17
 depends=$(sources:.c=.d)
18 18
 modules=
19
-static_modules=
19
+static_modules=tm
20 20
 static_modules_path=
... ...
@@ -671,6 +671,7 @@ char * build_res_buf_from_sip_req(	unsigned int code ,
671 671
 	memcpy( p, CRLF, CRLF_LEN );
672 672
 	p+=CRLF_LEN;
673 673
 	*(p) = 0;
674
+	*returned_len = len;
674 675
 	return buf;
675 676
 error:
676 677
 	if (buf) free(buf);