From 48103d3411b270326b48760d7150623c9d85dd82 Mon Sep 17 00:00:00 2001 From: shatty Date: Sat, 2 Aug 2003 06:24:37 +0000 Subject: [PATCH] changed to use stdint and intX_t types git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4198 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/posix/sys/socket.h | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/headers/posix/sys/socket.h b/headers/posix/sys/socket.h index 8fabb94333..4861647b08 100644 --- a/headers/posix/sys/socket.h +++ b/headers/posix/sys/socket.h @@ -4,6 +4,7 @@ #ifndef _SYS_SOCKET_H #define _SYS_SOCKET_H +#include #include #include #include @@ -12,7 +13,7 @@ extern "C" { #endif /* __cplusplus */ -typedef uint32 socklen_t; +typedef uint32_t socklen_t; /* These are the address/protocol families we'll be using... */ /* NB these should be added to as required... */ @@ -88,23 +89,23 @@ struct linger { }; struct sockaddr { - uint8 sa_len; - uint8 sa_family; - uint8 sa_data[30]; + uint8_t sa_len; + uint8_t sa_family; + uint8_t sa_data[30]; }; /* this can hold ANY sockaddr we care to throw at it! */ struct sockaddr_storage { - uint8 ss_len; /* total length */ - uint8 ss_family; /* address family */ - uint8 __ss_pad1[6]; /* align to quad */ - uint64 __ss_pad2; /* force alignment for stupid compilers */ - uint8 __ss_pad3[240]; /* pad to a total of 256 bytes */ + uint8_t ss_len; /* total length */ + uint8_t ss_family; /* address family */ + uint8_t __ss_pad1[6]; /* align to quad */ + uint64_t __ss_pad2; /* force alignment for stupid compilers */ + uint8_t __ss_pad3[240]; /* pad to a total of 256 bytes */ }; struct sockproto { - uint16 sp_family; - uint16 sp_protocol; + uint16_t sp_family; + uint16_t sp_protocol; }; #define CTL_NET 4