Bläddra i källkod

- other sun fixes

Andrei Pelinescu-Onciul 24 år sedan
förälder
incheckning
f539ba9c15
3 ändrade filer med 3 tillägg och 3 borttagningar
  1. 1 1
      Makefile
  2. 1 1
      cfg.lex
  3. 1 1
      route.c

+ 1 - 1
Makefile

@@ -19,7 +19,7 @@ YACC=bison
 YACC_FLAGS=-d
 # on linux and freebsd keep it empty (e.g. LIBS= )
 # on solaris add -lxnet (e.g. LIBS= -lxnet)
-LIBS=-lfl
+LIBS=-lfl -L/usr/local/lib
 ALLDEP=Makefile
 
 MKDEP=gcc -M

+ 1 - 1
cfg.lex

@@ -80,7 +80,7 @@ LBRACE		\{
 RBRACE		\}
 LBRACK		\[
 RBRACK		\]
-COMMA		,
+COMMA		","
 DOT			\.
 CR			\n
 

+ 1 - 1
route.c

@@ -241,7 +241,7 @@ static int comp_ip(unsigned a, void* param, int op, int subtype)
 			if (ret==1) break;
 			/* 2: (slow) rev dns the address
 			 * and compare with all the aliases */
-			he=gethostbyaddr(&a, sizeof(a), AF_INET);
+			he=gethostbyaddr((char*)&a, sizeof(a), AF_INET);
 			if (he==0){
 				LOG(L_DBG, "comp_ip: could not rev_resolve %x\n", a);
 				ret=0;