diff options
author | ume <ume@FreeBSD.org> | 2006-12-15 20:49:44 +0000 |
---|---|---|
committer | ume <ume@FreeBSD.org> | 2006-12-15 20:49:44 +0000 |
commit | 89a3ca4811ee4b83778a8ddb7d54874dff19b707 (patch) | |
tree | 98ad4d99a031d8761bab0970ed88904bab483af2 /lib/libc/inet | |
parent | abf24ba802c1b13998b4553a96c4f76e95ddae07 (diff) | |
download | FreeBSD-src-89a3ca4811ee4b83778a8ddb7d54874dff19b707.zip FreeBSD-src-89a3ca4811ee4b83778a8ddb7d54874dff19b707.tar.gz |
Vendor import of BIND 9.3.3
Diffstat (limited to 'lib/libc/inet')
-rw-r--r-- | lib/libc/inet/inet_cidr_ntop.c | 10 | ||||
-rw-r--r-- | lib/libc/inet/inet_net_ntop.c | 4 |
2 files changed, 7 insertions, 7 deletions
diff --git a/lib/libc/inet/inet_cidr_ntop.c b/lib/libc/inet/inet_cidr_ntop.c index 192cf1e..b25dc82 100644 --- a/lib/libc/inet/inet_cidr_ntop.c +++ b/lib/libc/inet/inet_cidr_ntop.c @@ -16,7 +16,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static const char rcsid[] = "$Id: inet_cidr_ntop.c,v 1.1.2.1.8.3 2005/11/03 23:08:40 marka Exp $"; +static const char rcsid[] = "$Id: inet_cidr_ntop.c,v 1.1.2.1.8.4 2006/10/11 02:32:50 marka Exp $"; #endif #include "port_before.h" @@ -40,10 +40,10 @@ static const char rcsid[] = "$Id: inet_cidr_ntop.c,v 1.1.2.1.8.3 2005/11/03 23:0 # define SPRINTF(x) ((size_t)sprintf x) #endif -static char * inet_cidr_ntop_ipv4 __P((const u_char *src, int bits, - char *dst, size_t size)); -static char * inet_cidr_ntop_ipv6 __P((const u_char *src, int bits, - char *dst, size_t size)); +static char * +inet_cidr_ntop_ipv4(const u_char *src, int bits, char *dst, size_t size); +static char * +inet_cidr_ntop_ipv6(const u_char *src, int bits, char *dst, size_t size); /* * char * diff --git a/lib/libc/inet/inet_net_ntop.c b/lib/libc/inet/inet_net_ntop.c index f508629..47af6284e 100644 --- a/lib/libc/inet/inet_net_ntop.c +++ b/lib/libc/inet/inet_net_ntop.c @@ -16,7 +16,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static const char rcsid[] = "$Id: inet_net_ntop.c,v 1.1.2.1.8.1 2004/03/09 08:33:32 marka Exp $"; +static const char rcsid[] = "$Id: inet_net_ntop.c,v 1.1.2.1.8.2 2006/06/20 02:53:07 marka Exp $"; #endif #include "port_before.h" @@ -264,7 +264,7 @@ inet_net_ntop_ipv6(const u_char *src, int bits, char *dst, size_t size) { } } /* Format CIDR /width. */ - SPRINTF((cp, "/%u", bits)); + sprintf(cp, "/%u", bits); if (strlen(outbuf) + 1 > size) goto emsgsize; strcpy(dst, outbuf); |