Source-Changes-HG archive

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

[src/trunk]: src/lib/libc/net the addition is handled in the alias.



details:   https://anonhg.NetBSD.org/src/rev/b3e02aa716f4
branches:  trunk
changeset: 792804:b3e02aa716f4
user:      christos <christos%NetBSD.org@localhost>
date:      Fri Jan 17 02:08:44 2014 +0000

description:
the addition is handled in the alias.

diffstat:

 lib/libc/net/gethnamaddr.c |  6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diffs (34 lines):

diff -r 150582ceccfa -r b3e02aa716f4 lib/libc/net/gethnamaddr.c
--- a/lib/libc/net/gethnamaddr.c        Fri Jan 17 02:05:54 2014 +0000
+++ b/lib/libc/net/gethnamaddr.c        Fri Jan 17 02:08:44 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: gethnamaddr.c,v 1.87 2014/01/17 02:03:44 christos Exp $        */
+/*     $NetBSD: gethnamaddr.c,v 1.88 2014/01/17 02:08:44 christos Exp $        */
 
 /*
  * ++Copyright++ 1985, 1988, 1993
@@ -57,7 +57,7 @@
 static char sccsid[] = "@(#)gethostnamadr.c    8.1 (Berkeley) 6/4/93";
 static char rcsid[] = "Id: gethnamaddr.c,v 8.21 1997/06/01 20:34:37 vixie Exp ";
 #else
-__RCSID("$NetBSD: gethnamaddr.c,v 1.87 2014/01/17 02:03:44 christos Exp $");
+__RCSID("$NetBSD: gethnamaddr.c,v 1.88 2014/01/17 02:08:44 christos Exp $");
 #endif
 #endif /* LIBC_SCCS and not lint */
 
@@ -808,7 +808,6 @@
                        continue;
                }
                addalias(q, cp, aliases, maxaliases);
-               *q++ = cp;
                if ((cp = strpbrk(cp, " \t")) != NULL)
                        *cp++ = '\0';
        }
@@ -1187,7 +1186,6 @@
                        goto nextline;
                }
                addalias(q, cp, aliases, maxaliases);
-               *q++ = cp;
                cp = strpbrk(cp, " \t");
                if (cp != NULL)
                        *cp++ = '\0';



Home | Main Index | Thread Index | Old Index