Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/bind/host s/getaddrinfo/get_addrinfo/, to avoid fun...



details:   https://anonhg.NetBSD.org/src/rev/08ee2091854c
branches:  trunk
changeset: 474168:08ee2091854c
user:      itojun <itojun%NetBSD.org@localhost>
date:      Wed Jun 30 12:27:34 1999 +0000

description:
s/getaddrinfo/get_addrinfo/, to avoid function name conflict with
library function getaddrinfo()
(is defined in RFC2553, will be somewhere in POSIX)

diffstat:

 usr.sbin/bind/host/host.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (37 lines):

diff -r 25c7e96d7150 -r 08ee2091854c usr.sbin/bind/host/host.c
--- a/usr.sbin/bind/host/host.c Wed Jun 30 10:18:59 1999 +0000
+++ b/usr.sbin/bind/host/host.c Wed Jun 30 12:27:34 1999 +0000
@@ -1,5 +1,5 @@
 #ifndef lint
-static char rcsid[] = "$Id: host.c,v 1.3 1999/03/30 20:36:58 ross Exp $";
+static char rcsid[] = "$Id: host.c,v 1.4 1999/06/30 12:27:34 itojun Exp $";
 #endif /* not lint */
 
 /*
@@ -146,7 +146,7 @@
 static int             parseclass(const char *s);
 static void            printanswer(const struct hostent *hp);
 static void            hperror(int errnum);
-static int             getaddrinfo(struct in_addr addr);
+static int             get_addrinfo(struct in_addr addr);
 static int             gethostinfo(char *name);
 static int             getdomaininfo(const char *name, const char *domain);
 static int             getinfo(const char *name, const char *domain,
@@ -287,7 +287,7 @@
                                continue;
                        }
                } else {
-                       if (getaddrinfo(addr) == 0)
+                       if (get_addrinfo(addr) == 0)
                                hp = NULL;
                        else
                                hp = (struct hostent *)1;       /* XXX */
@@ -432,7 +432,7 @@
 }
 
 static int
-getaddrinfo(struct in_addr addr) {
+get_addrinfo(struct in_addr addr) {
        u_int32_t ha = ntohl(addr.s_addr);
        char name[NS_MAXDNAME];
 



Home | Main Index | Thread Index | Old Index