Browse code

- removed 2 warnings on Solaris

Andrei Pelinescu-Onciul authored on 06/09/2001 02:31:30
Showing 2 changed files
... ...
@@ -45,7 +45,7 @@ int check_address(unsigned long ip, char *name, int resolver)
45 45
 	}
46 46
 	if (resolver&DO_REV_DNS){
47 47
 		/* try reverse dns */
48
-		he=gethostbyaddr(&ip, sizeof(ip), AF_INET);
48
+		he=gethostbyaddr((char*)&ip, sizeof(ip), AF_INET);
49 49
 		if (strcmp(he->h_name, name)==0)
50 50
 			return 0;
51 51
 		for (i=0; he->h_aliases[i];i++){
... ...
@@ -34,7 +34,7 @@ int udp_init(unsigned long ip, unsigned short port)
34 34
 	/* set sock opts? */
35 35
 	optval=1;
36 36
 	if (setsockopt(udp_sock, SOL_SOCKET, SO_REUSEADDR,
37
-					&optval, sizeof(optval)) ==-1)
37
+					(void*)&optval, sizeof(optval)) ==-1)
38 38
 	{
39 39
 		DPrint("ERROR: udp_init: setsockopt: %s\n", strerror());
40 40
 		goto error;