1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-18 10:35:55 +00:00

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:
Yoshinobu Inoue 2000-03-11 19:51:04 +00:00
parent de55b0bbee
commit 19a938aa3d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=57911

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 {