Source-Changes-HG archive

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

[src/trunk]: src/lib/libc/net improve lint friendliness on USE_GETIPNODEBY case.



details:   https://anonhg.NetBSD.org/src/rev/63a5ade25a70
branches:  trunk
changeset: 474323:63a5ade25a70
user:      itojun <itojun%NetBSD.org@localhost>
date:      Sat Jul 03 14:29:29 1999 +0000

description:
improve lint friendliness on USE_GETIPNODEBY case.
(no change in behavior)

diffstat:

 lib/libc/net/getaddrinfo.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (19 lines):

diff -r 8b658608ce59 -r 63a5ade25a70 lib/libc/net/getaddrinfo.c
--- a/lib/libc/net/getaddrinfo.c        Sat Jul 03 14:16:12 1999 +0000
+++ b/lib/libc/net/getaddrinfo.c        Sat Jul 03 14:29:29 1999 +0000
@@ -519,12 +519,12 @@
        struct addrinfo *pai;
        int port0;
 {
+#ifdef USE_GETIPNODEBY
+       return get_addr0(hostname, af, res, pai, port0);
+#else
        int i, error;
        struct addrinfo *cur;
 
-#ifdef USE_GETIPNODEBY
-       return get_addr0(hostname, af, res, pai, port0);
-#else
        for (i = 0; afdl[i].a_af; i++) {
                if (af == AF_UNSPEC || af == afdl[i].a_af) 
                        ;



Home | Main Index | Thread Index | Old Index