diff options
| author | Ruslan Ermilov <ru@FreeBSD.org> | 2001-09-07 12:00:50 +0000 |
|---|---|---|
| committer | Ruslan Ermilov <ru@FreeBSD.org> | 2001-09-07 12:00:50 +0000 |
| commit | 70057abf2d85e3ec200da342207f8d178df22cd3 (patch) | |
| tree | effc196829f7d31cec8a88b1e38317340096ff7b /usr.bin/netstat/inet6.c | |
| parent | fb5d0fbdd7b566cc023849db8757c75d414542ec (diff) | |
Notes
Diffstat (limited to 'usr.bin/netstat/inet6.c')
| -rw-r--r-- | usr.bin/netstat/inet6.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/netstat/inet6.c b/usr.bin/netstat/inet6.c index 44a9b51a811a..af2382a64dc8 100644 --- a/usr.bin/netstat/inet6.c +++ b/usr.bin/netstat/inet6.c @@ -1049,7 +1049,7 @@ inet6print(struct in6_addr *in6, int port, char *proto, int numeric) char line[80], *cp; int width; - sprintf(line, "%.*s.", lflag ? 39 : + sprintf(line, "%.*s.", Wflag ? 39 : (Aflag && !numeric) ? 12 : 16, inet6name(in6)); cp = index(line, '\0'); if (!numeric && port) @@ -1058,7 +1058,7 @@ inet6print(struct in6_addr *in6, int port, char *proto, int numeric) sprintf(cp, "%.8s", sp ? sp->s_name : "*"); else sprintf(cp, "%d", ntohs((u_short)port)); - width = lflag ? 45 : Aflag ? 18 : 22; + width = Wflag ? 45 : Aflag ? 18 : 22; printf("%-*.*s ", width, width, line); } |
