From a97cf58f2b9ffb68f4c476a5bd2e42a6e0d1648c Mon Sep 17 00:00:00 2001 From: Jun-ichiro itojun Hagino Date: Mon, 26 Nov 2001 01:37:17 +0000 Subject: fix AF_INET6 dgram socket printing (missing curly brace) --- usr.bin/fstat/fstat.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'usr.bin/fstat') diff --git a/usr.bin/fstat/fstat.c b/usr.bin/fstat/fstat.c index 3ccc8e08df5..2b449f51f53 100644 --- a/usr.bin/fstat/fstat.c +++ b/usr.bin/fstat/fstat.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fstat.c,v 1.32 2001/11/19 19:02:14 mpech Exp $ */ +/* $OpenBSD: fstat.c,v 1.33 2001/11/26 01:37:16 itojun Exp $ */ /*- * Copyright (c) 1988, 1993 @@ -41,7 +41,7 @@ static char copyright[] = #ifndef lint /*static char sccsid[] = "from: @(#)fstat.c 8.1 (Berkeley) 6/6/93";*/ -static char *rcsid = "$OpenBSD: fstat.c,v 1.32 2001/11/19 19:02:14 mpech Exp $"; +static char *rcsid = "$OpenBSD: fstat.c,v 1.33 2001/11/26 01:37:16 itojun Exp $"; #endif /* not lint */ #include @@ -962,13 +962,14 @@ socktrans(sock, i) IN6_IS_ADDR_UNSPECIFIED(&inpcb.inp_laddr6) ? "*" : xaddrbuf, ntohs(inpcb.inp_lport)); - if (inpcb.inp_fport) + if (inpcb.inp_fport) { snprintf(xaddrbuf, sizeof(xaddrbuf), "[%s]", inet6_addrstr(&inpcb.inp_faddr6)); printf(" <-> %s:%d", IN6_IS_ADDR_UNSPECIFIED(&inpcb.inp_faddr6) ? "*" : xaddrbuf, ntohs(inpcb.inp_fport)); + } } else if (so.so_pcb) printf(" %p", so.so_pcb); break; -- cgit v1.2.3