Subject: Re: help on inet_ntoa()
To: None <current-users@NetBSD.ORG>
From: der Mouse <mouse@Collatz.McRCIM.McGill.EDU>
List: current-users
Date: 07/10/1996 17:35:41
> Why when i do inet_ntoa the compiler says :
> : Incompatible type for argument 1 of 'inet_ntoa' 

> Whats wrong ??????

You're passing the wrong argument type, as the compiler message
indicates.

> Here's the code :

> 			 inet_ntoa ( *(int *)hostp->h_addr ));

The argument of ntoa is not an int and as far as I know never has been;
it's a "struct in_addr".  Check the man page.

					der Mouse

			    mouse@collatz.mcrcim.mcgill.edu
		    01 EE 31 F6 BB 0C 34 36  00 F3 7C 5A C1 A0 67 1D