Browse code

- other sun fixes

Andrei Pelinescu-Onciul authored on 21/09/2001 20:47:18
Showing 3 changed files
... ...
@@ -19,7 +19,7 @@ YACC=bison
19 19
 YACC_FLAGS=-d
20 20
 # on linux and freebsd keep it empty (e.g. LIBS= )
21 21
 # on solaris add -lxnet (e.g. LIBS= -lxnet)
22
-LIBS=-lfl
22
+LIBS=-lfl -L/usr/local/lib
23 23
 ALLDEP=Makefile
24 24
 
25 25
 MKDEP=gcc -M
... ...
@@ -80,7 +80,7 @@ LBRACE		\{
80 80
 RBRACE		\}
81 81
 LBRACK		\[
82 82
 RBRACK		\]
83
-COMMA		,
83
+COMMA		","
84 84
 DOT			\.
85 85
 CR			\n
86 86
 
... ...
@@ -241,7 +241,7 @@ static int comp_ip(unsigned a, void* param, int op, int subtype)
241 241
 			if (ret==1) break;
242 242
 			/* 2: (slow) rev dns the address
243 243
 			 * and compare with all the aliases */
244
-			he=gethostbyaddr(&a, sizeof(a), AF_INET);
244
+			he=gethostbyaddr((char*)&a, sizeof(a), AF_INET);
245 245
 			if (he==0){
246 246
 				LOG(L_DBG, "comp_ip: could not rev_resolve %x\n", a);
247 247
 				ret=0;