Date: Thu, 18 Dec 1997 10:08:28 -0500 (EST) From: "Gregory D. Moncreaff" <moncrg@bt340707.res.ray.com> To: freebsd-hackers@FreeBSD.ORG Subject: sockaddr <-> sockaddr_* conversion macros Message-ID: <199712181508.KAA05628@bt340707.res.ray.com>
next in thread | raw e-mail | index | archive | help
it seems that these keep being created over and over in different source and header files... as well as the tons of (struct sockaddr.... ) casts [look for satosin, sintosa, in netinet for example why not "standardize" them: sys/socket.h: #define SA ((struct sockaddr *)s) netinet/in.h: #define SIN ((struct sockaddr_in *)s) netatalk/at.h: #define SAT ((struct sockaddr_at *)s) etc... the define of SA is of general user utility especially with any level of prototype warnings enabled....
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199712181508.KAA05628>