Index: usr.bin/sockstat/sockstat.c =================================================================== --- usr.bin/sockstat/sockstat.c +++ usr.bin/sockstat/sockstat.c @@ -1064,7 +1064,7 @@ struct addr *laddr, *faddr; struct sock *s_tmp; - while (pos < 29) + while (pos < 30) pos += xprintf(" "); pos += xprintf("%s", s->protoname); if (s->vflag & INP_IPV4) @@ -1077,7 +1077,7 @@ faddr = s->faddr; first = 1; while (laddr != NULL || faddr != NULL) { - offset = 36; + offset = 37; while (pos < offset) pos += xprintf(" "); switch (s->family) { @@ -1226,7 +1226,7 @@ int n, pos; if (opt_q != 1) { - printf("%-8s %-10s %-5s %-2s %-6s %-*s %-*s", + printf("%-8s %-10s %-5s %-3s %-6s %-*s %-*s", "USER", "COMMAND", "PID", "FD", "PROTO", opt_w ? 45 : 21, "LOCAL ADDRESS", opt_w ? 45 : 21, "FOREIGN ADDRESS"); @@ -1269,7 +1269,7 @@ pos += xprintf("%lu ", (u_long)xf->xf_pid); while (pos < 26) pos += xprintf(" "); - pos += xprintf("%d ", xf->xf_fd); + pos += xprintf("%-3d ", xf->xf_fd); displaysock(s, pos); } }