innfeed, bindaddress, force-ipv4, ipv6

Russ Allbery rra at
Fri Apr 18 09:09:59 UTC 2008

Julien ÉLIE <julien at> writes:

> Is it a cast to (struct sockaddr_storage *) and not (struct
> sockaddr_in/in6 *) or (struct sockaddr *) which should be done?
> --> const struct sockaddr_storage cxnAddr, cxnSelf ;

In general, just don't cast arguments to memcpy at all.  memcpy uses a
void * prototype precisely to enable you to not cast, and I think it's
better style to make use of that.

Russ Allbery (rra at             <>

    Please send questions to the list rather than mailing me directly.
     <> explains why.

More information about the inn-workers mailing list