summaryrefslogtreecommitdiffstats
path: root/include/arpa
diff options
context:
space:
mode:
authormike <mike@FreeBSD.org>2002-08-16 16:34:26 +0000
committermike <mike@FreeBSD.org>2002-08-16 16:34:26 +0000
commit1f81bb02827618b06d201044121aa1fe55867eef (patch)
treeff54d4601b89a5a75f1650869bd114034b64d029 /include/arpa
parentdf335c7ca33ab5e9b7a5e03aeb76501a21ccd60e (diff)
downloadFreeBSD-src-1f81bb02827618b06d201044121aa1fe55867eef.zip
FreeBSD-src-1f81bb02827618b06d201044121aa1fe55867eef.tar.gz
Change a POSIX conditional to use the new __BSD_VISIBLE macro.
Fix the following style bugs: o #ifdef, #ifndef, and #undef should be followed by a space, not a tab. o The second level of indentation in prototypes is 4 characters even when the function names are indented 1 extra character. o Type qualifiers that appear next to a * need a seperating space so that the qualifier isn't easily confused with parameter names. (eg. `char * __restrict' instead of `char *__restrict') Submitted by: bde (mostly)
Diffstat (limited to 'include/arpa')
-rw-r--r--include/arpa/inet.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/include/arpa/inet.h b/include/arpa/inet.h
index ecfcb49..13be871 100644
--- a/include/arpa/inet.h
+++ b/include/arpa/inet.h
@@ -77,30 +77,30 @@ typedef __uint32_t uint32_t;
#define _UINT32_T_DECLARED
#endif
-#ifndef _IN_ADDR_T_DECLARED
+#ifndef _IN_ADDR_T_DECLARED
typedef uint32_t in_addr_t;
#define _IN_ADDR_T_DECLARED
#endif
-#ifndef _IN_PORT_T_DECLARED
+#ifndef _IN_PORT_T_DECLARED
typedef uint16_t in_port_t;
#define _IN_PORT_T_DECLARED
#endif
-#ifndef _POSIX_SOURCE
-#ifdef _BSD_SIZE_T_
+#if __BSD_VISIBLE
+#ifdef _BSD_SIZE_T_
typedef _BSD_SIZE_T_ size_t;
-#undef _BSD_SIZE_T_
+#undef _BSD_SIZE_T_
+#endif
#endif
-#endif /* !_POSIX_SOURCE */
/*
* XXX socklen_t is used by a POSIX.1-2001 interface, but not required by
* POSIX.1-2001.
*/
-#ifdef _BSD_SOCKLEN_T_
+#ifdef _BSD_SOCKLEN_T_
typedef _BSD_SOCKLEN_T_ socklen_t;
-#undef _BSD_SOCKLEN_T_
+#undef _BSD_SOCKLEN_T_
#endif
#ifndef _STRUCT_IN_ADDR_DECLARED
@@ -139,9 +139,9 @@ uint16_t ntohs(uint16_t);
in_addr_t inet_addr(const char *);
char *inet_ntoa(struct in_addr);
-const char *inet_ntop(int, const void *__restrict, char *__restrict,
- socklen_t);
-int inet_pton(int, const char *__restrict, void *__restrict);
+const char *inet_ntop(int, const void * __restrict, char * __restrict,
+ socklen_t);
+int inet_pton(int, const char * __restrict, void * __restrict);
#if __BSD_VISIBLE
int ascii2addr(int, const char *, void *);
OpenPOWER on IntegriCloud