summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2013-04-02 03:38:25 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2013-04-02 03:38:25 +0000
commit480dbba5a3d93ecc597f6ad6dd30740b11471456 (patch)
treec2b2d1ac34e6b38d270a1e98bad1be663322dafc /sys
parent2f1fb9643a516bad01df1d1325ad30d3563062ea (diff)
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')
-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) \