summaryrefslogtreecommitdiffstats
path: root/sys/sys/socket.h
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2013-04-02 03:38:24 +0000
committerguenther <guenther@openbsd.org>2013-04-02 03:38:24 +0000
commitaf31e1487d9745bdcbb5f5670f4525b109b74e0f (patch)
treef362d6006ab6739ce96e2a4cc0e3114a76a09c64 /sys/sys/socket.h
parentRemove "/IPv4" from the comments of the M_{TCP,UDP}_CSUM_IN_* flags, (diff)
downloadwireguard-openbsd-af31e1487d9745bdcbb5f5670f4525b109b74e0f.tar.xz
wireguard-openbsd-af31e1487d9745bdcbb5f5670f4525b109b74e0f.zip
Use internal types instead of the old BSD u_int#_t types in the
standard portion of the header. Most of the diff from James Turner (james (at) calminferno.net)
Diffstat (limited to 'sys/sys/socket.h')
-rw-r--r--sys/sys/socket.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/sys/socket.h b/sys/sys/socket.h
index 3f52d86e7f0..aca2e639de4 100644
--- a/sys/sys/socket.h
+++ b/sys/sys/socket.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: socket.h,v 1.82 2012/09/15 00:47:08 guenther Exp $ */
+/* $OpenBSD: socket.h,v 1.83 2013/04/02 03:38:24 guenther Exp $ */
/* $NetBSD: socket.h,v 1.14 1996/02/09 18:25:36 christos Exp $ */
/*
@@ -186,7 +186,7 @@ struct splice {
* addresses.
*/
struct sockaddr {
- u_int8_t sa_len; /* total length */
+ __uint8_t sa_len; /* total length */
sa_family_t sa_family; /* address family */
char sa_data[14]; /* actually longer; address value */
};
@@ -204,10 +204,10 @@ struct sockaddr {
* occurrences (including header file) to __ss_len.
*/
struct sockaddr_storage {
- u_int8_t ss_len; /* total length */
+ __uint8_t ss_len; /* total length */
sa_family_t ss_family; /* address family */
unsigned char __ss_pad1[6]; /* align to quad */
- u_int64_t __ss_pad2; /* force alignment for stupid compilers */
+ __uint64_t __ss_pad2; /* force alignment for stupid compilers */
unsigned char __ss_pad3[240]; /* pad to a total of 256 bytes */
};
@@ -441,7 +441,7 @@ struct cmsghdr {
/* given pointer to struct cmsghdr, return pointer to data */
#define CMSG_DATA(cmsg) \
- ((u_char *)(cmsg) + _ALIGN(sizeof(struct cmsghdr)))
+ ((unsigned char *)(cmsg) + _ALIGN(sizeof(struct cmsghdr)))
/* given pointer to struct cmsghdr, return pointer to next cmsghdr */
#define CMSG_NXTHDR(mhdr, cmsg) \