diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2002-11-24 15:25:46 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2002-11-24 15:25:46 +0000 |
commit | 397a20a17fafa3fea428868fd4de6dda77a269ff (patch) | |
tree | dbe5e6c1bf4a0319ac817333b416673620fbe9a7 /sys | |
parent | 3c6a10e1931e46e9aea969d611625a6c607f85e0 (diff) |
Explicit unsigned char and unsigned short instead of u_char, u_short.
Make these files usable with -D_POSIX_SOURCE
okay millert@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/sys/socket.h | 16 | ||||
-rw-r--r-- | sys/sys/un.h | 6 |
2 files changed, 11 insertions, 11 deletions
diff --git a/sys/sys/socket.h b/sys/sys/socket.h index cbb4021d2b7..81226868e0c 100644 --- a/sys/sys/socket.h +++ b/sys/sys/socket.h @@ -1,4 +1,4 @@ -/* $OpenBSD: socket.h,v 1.44 2002/09/10 20:51:37 deraadt Exp $ */ +/* $OpenBSD: socket.h,v 1.45 2002/11/24 15:25:45 espie Exp $ */ /* $NetBSD: socket.h,v 1.14 1996/02/09 18:25:36 christos Exp $ */ /* @@ -163,9 +163,9 @@ struct sockaddr { struct sockaddr_storage { u_int8_t ss_len; /* total length */ sa_family_t ss_family; /* address family */ - u_char __ss_pad1[6]; /* align to quad */ + unsigned char __ss_pad1[6]; /* align to quad */ u_int64_t __ss_pad2; /* force alignment for stupid compilers */ - u_char __ss_pad3[240]; /* pad to a total of 256 bytes */ + unsigned char __ss_pad3[240]; /* pad to a total of 256 bytes */ }; /* @@ -173,8 +173,8 @@ struct sockaddr_storage { * information in raw sockets. */ struct sockproto { - u_short sp_family; /* address family */ - u_short sp_protocol; /* protocol */ + unsigned short sp_family; /* address family */ + unsigned short sp_protocol; /* protocol */ }; /* @@ -317,7 +317,7 @@ struct msghdr { void *msg_name; /* optional address */ socklen_t msg_namelen; /* size of address */ struct iovec *msg_iov; /* scatter/gather array */ - u_int msg_iovlen; /* # elements in msg_iov */ + unsigned int msg_iovlen; /* # elements in msg_iov */ void *msg_control; /* ancillary data, see below */ socklen_t msg_controllen; /* ancillary data buffer len */ int msg_flags; /* flags on received message */ @@ -388,8 +388,8 @@ struct cmsghdr { * 4.3 compat sockaddr, move to compat file later */ struct osockaddr { - u_short sa_family; /* address family */ - char sa_data[14]; /* up to 14 bytes of direct address */ + unsigned short sa_family; /* address family */ + char sa_data[14]; /* up to 14 bytes of direct address */ }; /* diff --git a/sys/sys/un.h b/sys/sys/un.h index b88241f50ef..b92f8ee4c57 100644 --- a/sys/sys/un.h +++ b/sys/sys/un.h @@ -1,4 +1,4 @@ -/* $OpenBSD: un.h,v 1.6 2002/03/14 03:16:12 millert Exp $ */ +/* $OpenBSD: un.h,v 1.7 2002/11/24 15:25:45 espie Exp $ */ /* $NetBSD: un.h,v 1.11 1996/02/04 02:12:47 christos Exp $ */ /* @@ -43,8 +43,8 @@ * Definitions for UNIX IPC domain. */ struct sockaddr_un { - u_char sun_len; /* sockaddr len including null */ - u_char sun_family; /* AF_UNIX */ + unsigned char sun_len; /* sockaddr len including null */ + unsigned char sun_family; /* AF_UNIX */ char sun_path[104]; /* path name (gag) */ }; |