Commit 270cd94d authored by Bob Halley's avatar Bob Halley

change isc_inet_ to isc_net_

parent a761b4cd
......@@ -70,7 +70,7 @@
#if defined(LIBC_SCCS) && !defined(lint)
static char sccsid[] = "@(#)inet_addr.c 8.1 (Berkeley) 6/17/93";
static char rcsid[] = "$Id: inet_aton.c,v 1.5 1999/07/16 00:24:04 halley Exp $";
static char rcsid[] = "$Id: inet_aton.c,v 1.6 1999/07/16 00:43:45 halley Exp $";
#endif /* LIBC_SCCS and not lint */
#include <config.h>
......@@ -88,7 +88,7 @@ static char rcsid[] = "$Id: inet_aton.c,v 1.5 1999/07/16 00:24:04 halley Exp $";
* cannot distinguish between failure and a local broadcast address.
*/
int
isc_inet_aton(const char *cp, struct in_addr *addr)
isc_net_aton(const char *cp, struct in_addr *addr)
{
unsigned long val;
int base, n;
......
......@@ -16,7 +16,7 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
static char rcsid[] = "$Id: inet_ntop.c,v 1.4 1999/07/16 00:24:04 halley Exp $";
static char rcsid[] = "$Id: inet_ntop.c,v 1.5 1999/07/16 00:43:45 halley Exp $";
#endif /* LIBC_SCCS and not lint */
#include <config.h>
......@@ -44,7 +44,7 @@ static const char *inet_ntop6(const unsigned char *src, char *dst,
#endif
/* char *
* isc_inet_ntop(af, src, dst, size)
* isc_net_ntop(af, src, dst, size)
* convert a network format address to presentation format.
* return:
* pointer to presentation format address (`dst'), or NULL (see errno).
......@@ -52,7 +52,7 @@ static const char *inet_ntop6(const unsigned char *src, char *dst,
* Paul Vixie, 1996.
*/
const char *
isc_inet_ntop(int af, const void *src, char *dst, size_t size)
isc_net_ntop(int af, const void *src, char *dst, size_t size)
{
switch (af) {
case AF_INET:
......@@ -85,7 +85,7 @@ inet_ntop4(const unsigned char *src, char *dst, size_t size)
static const char *fmt = "%u.%u.%u.%u";
char tmp[sizeof "255.255.255.255"];
if (sprintf(tmp, fmt, src[0], src[1], src[2], src[3]) > size) {
if ((size_t)sprintf(tmp, fmt, src[0], src[1], src[2], src[3]) > size) {
errno = ENOSPC;
return (NULL);
}
......
......@@ -16,7 +16,7 @@
*/
#if defined(LIBC_SCCS) && !defined(lint)
static char rcsid[] = "$Id: inet_pton.c,v 1.3 1999/07/16 00:24:04 halley Exp $";
static char rcsid[] = "$Id: inet_pton.c,v 1.4 1999/07/16 00:43:45 halley Exp $";
#endif /* LIBC_SCCS and not lint */
#include <config.h>
......@@ -39,7 +39,7 @@ static int inet_pton4(const char *src, unsigned char *dst);
static int inet_pton6(const char *src, unsigned char *dst);
/* int
* isc_inet_pton(af, src, dst)
* isc_net_pton(af, src, dst)
* convert from presentation format (which usually means ASCII printable)
* to network format (which is usually some kind of binary format).
* return:
......@@ -50,7 +50,7 @@ static int inet_pton6(const char *src, unsigned char *dst);
* Paul Vixie, 1996.
*/
int
isc_inet_pton(af, src, dst)
isc_net_pton(af, src, dst)
int af;
const char *src;
void *dst;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment