Fix sockaddr_storage related macro definition, as ss_family member type change.

(Currently, no effect but for future portability)

Approved by: jkh

Reviewed by: bde
This commit is contained in:
shin 2000-03-11 19:51:04 +00:00
parent 8df7f6ba72
commit 282ee28581

View File

@ -166,8 +166,8 @@ struct sockproto {
*/
#define _SS_MAXSIZE 128
#define _SS_ALIGNSIZE (sizeof(int64_t))
#define _SS_PAD1SIZE (_SS_ALIGNSIZE - sizeof(u_char) * 2)
#define _SS_PAD2SIZE (_SS_MAXSIZE - sizeof(u_char) * 2 - \
#define _SS_PAD1SIZE (_SS_ALIGNSIZE - sizeof(u_char) - sizeof(sa_family_t))
#define _SS_PAD2SIZE (_SS_MAXSIZE - sizeof(u_char) - sizeof(sa_family_t) - \
_SS_PAD1SIZE - _SS_ALIGNSIZE)
struct sockaddr_storage {