diff options
author | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2002-03-11 02:11:19 +0000 |
---|---|---|
committer | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2002-03-11 02:11:19 +0000 |
commit | 97f98b531885094ac8ff60b4d27ac1eb904a5937 (patch) | |
tree | c960a93375369a98c5a96ea3681efaf35b147a2e /sbin/ping6/ping6.c | |
parent | 4ad8129c6bd9217873643849f13c9f9d0d041d8c (diff) |
no \n to warnx(3). From: Mike Pechkin <mpech@prosoft.org.lv>
Diffstat (limited to 'sbin/ping6/ping6.c')
-rw-r--r-- | sbin/ping6/ping6.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/ping6/ping6.c b/sbin/ping6/ping6.c index 9ee45cf730d..63beb4e9061 100644 --- a/sbin/ping6/ping6.c +++ b/sbin/ping6/ping6.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ping6.c,v 1.42 2002/02/17 19:42:29 millert Exp $ */ +/* $OpenBSD: ping6.c,v 1.43 2002/03/11 02:11:18 itojun Exp $ */ /* $KAME: ping6.c,v 1.129 2001/06/22 13:16:02 itojun Exp $ */ /* @@ -1409,14 +1409,14 @@ pr_pack(buf, cc, mhdr) mhdr->msg_namelen != sizeof(struct sockaddr_in6) || ((struct sockaddr *)mhdr->msg_name)->sa_family != AF_INET6) { if (options & F_VERBOSE) - warnx("invalid peername\n"); + warnx("invalid peername"); return; } from = (struct sockaddr *)mhdr->msg_name; fromlen = mhdr->msg_namelen; if (cc < sizeof(struct icmp6_hdr)) { if (options & F_VERBOSE) - warnx("packet too short (%d bytes) from %s\n", cc, + warnx("packet too short (%d bytes) from %s", cc, pr_addr(from, fromlen)); return; } |