diff options
author | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2001-11-26 01:37:17 +0000 |
---|---|---|
committer | Jun-ichiro itojun Hagino <itojun@cvs.openbsd.org> | 2001-11-26 01:37:17 +0000 |
commit | a97cf58f2b9ffb68f4c476a5bd2e42a6e0d1648c (patch) | |
tree | 3def4ab7412562c43c3f1a8d06f0cbe2019f6794 /usr.bin/fstat | |
parent | cc6555aa24940cae9f75f656622763d63159d2f9 (diff) |
fix AF_INET6 dgram socket printing (missing curly brace)
Diffstat (limited to 'usr.bin/fstat')
-rw-r--r-- | usr.bin/fstat/fstat.c | 7 |
1 files changed, 4 insertions, 3 deletions
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 <sys/param.h> @@ -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; |