Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/arp remove spurious newline in an error message.



details:   https://anonhg.NetBSD.org/src/rev/fc84469d7afa
branches:  trunk
changeset: 513369:fc84469d7afa
user:      chs <chs%NetBSD.org@localhost>
date:      Sun Jul 29 21:24:57 2001 +0000

description:
remove spurious newline in an error message.

diffstat:

 usr.sbin/arp/arp.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r a72543af7d0d -r fc84469d7afa usr.sbin/arp/arp.c
--- a/usr.sbin/arp/arp.c        Sun Jul 29 21:24:23 2001 +0000
+++ b/usr.sbin/arp/arp.c        Sun Jul 29 21:24:57 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: arp.c,v 1.30 2001/04/24 23:11:06 atatat Exp $ */
+/*     $NetBSD: arp.c,v 1.31 2001/07/29 21:24:57 chs Exp $ */
 
 /*
  * Copyright (c) 1984, 1993
@@ -46,7 +46,7 @@
 #if 0
 static char sccsid[] = "@(#)arp.c      8.3 (Berkeley) 4/28/95";
 #else
-__RCSID("$NetBSD: arp.c,v 1.30 2001/04/24 23:11:06 atatat Exp $");
+__RCSID("$NetBSD: arp.c,v 1.31 2001/07/29 21:24:57 chs Exp $");
 #endif
 #endif /* not lint */
 
@@ -653,7 +653,7 @@
        if (inet_aton(host, inap) == 1)
                return (0);
        if ((hp = gethostbyname(host)) == NULL) {
-               warnx("%s: %s\n", host, hstrerror(h_errno));
+               warnx("%s: %s", host, hstrerror(h_errno));
                return (-1);
        }
        (void)memcpy(inap, hp->h_addr, sizeof(*inap));



Home | Main Index | Thread Index | Old Index