mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-03 19:08:58 +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:
parent
de55b0bbee
commit
19a938aa3d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=57911
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user