aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYoshinobu Inoue <shin@FreeBSD.org>2000-03-11 19:51:04 +0000
committerYoshinobu Inoue <shin@FreeBSD.org>2000-03-11 19:51:04 +0000
commit19a938aa3d8e07d6ebfa67cb028d128db0ec9461 (patch)
tree069f0dfb3acd0e49ac78d3226b5bc11b1f96e29e
parentde55b0bbee0c679661f69243754c61aef1d3610c (diff)
Notes
-rw-r--r--sys/sys/socket.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/sys/socket.h b/sys/sys/socket.h
index 3a59bdc37a82..b71e206c61c5 100644
--- a/sys/sys/socket.h
+++ b/sys/sys/socket.h
@@ -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 {