2
0
Эх сурвалжийг харах

*** empty log message ***

Bogdan-Andrei Iancu 23 жил өмнө
parent
commit
c64e586dcc
3 өөрчлөгдсөн 8 нэмэгдсэн , 7 устгасан
  1. 3 3
      Makefile
  2. 2 2
      Makefile.defs
  3. 3 2
      forward.c

+ 3 - 3
Makefile

@@ -10,9 +10,9 @@ auto_gen=lex.yy.c cfg.tab.c   #lexx, yacc etc
 #include  source related defs
 include Makefile.sources
 
-exclude_modules=CVS 
-#mysql auth rr
-static_modules=tm
+exclude_modules=CVS mysql 
+#auth rr
+static_modules=
 static_modules_path=$(addprefix modules/, $(static_modules))
 extra_sources=$(wildcard $(addsuffix /*.c, $(static_modules_path)))
 extra_objs=$(extra_sources:.c=.o)

+ 2 - 2
Makefile.defs

@@ -103,8 +103,8 @@ DEFS+= -DNAME='"$(NAME)"' -DVERSION='"$(RELEASE)"' -DARCH='"$(ARCH)"' \
 
 
 #PROFILE=  -pg #set this if you want profiling
-mode = debug
-#mode = release
+#mode = debug
+mode = release
 
 # platform dependent settings
 

+ 3 - 2
forward.c

@@ -134,13 +134,14 @@ error:
 int update_sock_struct_from_via( union sockaddr_union* to,
 								 struct via_body* via )
 {
-	int err;
 	struct hostent* he;
-	unsigned int ip;
 	char *host_copy;
 
 
 #ifdef DNS_IP_HACK
+	int err;
+	unsigned int ip;
+
 	ip=str2ip((unsigned char*)via->host.s,via->host.len,&err);
 	if (err==0){
 		to->sin.sin_family=AF_INET;