diff options
author | robert <robert@FreeBSD.org> | 2002-08-14 20:40:35 +0000 |
---|---|---|
committer | robert <robert@FreeBSD.org> | 2002-08-14 20:40:35 +0000 |
commit | af770662f5873b76efc3233fab18400da9bded1d (patch) | |
tree | f8ad2c443a1f3613a98bf4e10404aa3616e72d33 /include/arpa | |
parent | 49bfd93f794015af9f041211138924510d40f89a (diff) | |
download | FreeBSD-src-af770662f5873b76efc3233fab18400da9bded1d.zip FreeBSD-src-af770662f5873b76efc3233fab18400da9bded1d.tar.gz |
-Add the restrict required by IEEE Std 1003.1-2001 in form
of our __restrict macro to the prototypes and function
definitions of inet_pton and inet_ntop.
- Use ANSI-C function argument lists.
- Adjust the prototypes in the manual page.
Diffstat (limited to 'include/arpa')
-rw-r--r-- | include/arpa/inet.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/arpa/inet.h b/include/arpa/inet.h index d16fd1f..ecfcb49 100644 --- a/include/arpa/inet.h +++ b/include/arpa/inet.h @@ -139,8 +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 *, char *, socklen_t); -int inet_pton(int, const char *, void *); +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 *); |