[sane-devel] Changes to the saned access control

Henning Meier-Geinitz henning at meier-geinitz.de
Tue Feb 19 19:34:32 GMT 2002


Hi,

On Sun, Feb 17, 2002 at 09:12:05PM +0100, Franz Bakan wrote:
> netinet/in.h is quite old (1996) here and contains:
> 
> extern  u_long      inet_addr(__const__ char*);
> 
> >Does it work if you change in_addr_t to u_int32_t? If this works, I
> >will add a test to configure.
> 
> It compiles but it seems to me a type mismatch
> 
> because config.h contains:
> 
> /* Define to `unsigned int' if <sys/types.h> doesn't define. */
> #define u_int32_t unsigned int

As the IPv4 address is 32 bit, I think u_int32_t is correct. If I
remember correctly, long is 32 bit on 32 bit systems, too.

I have used u_int32_t in CVS now. Maybe someone can test this on a 64
bit system which doesn't have inet_pton and inet_aton.

Bye,
  Henning



More information about the sane-devel mailing list