innfeed, bindaddress, force-ipv4, ipv6
Russ Allbery
rra at stanford.edu
Fri Apr 18 09:09:59 UTC 2008
Julien ÉLIE <julien at trigofacile.com> 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 stanford.edu) <http://www.eyrie.org/~eagle/>
Please send questions to the list rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
More information about the inn-workers
mailing list