summaryrefslogtreecommitdiff
path: root/usr.bin/netstat
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2020-01-15 14:02:38 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2020-01-15 14:02:38 +0000
commit2f4f4ada81b27fe2f1889124b1a61dfeda2ee816 (patch)
treeb2646af44c49b3463c96d03a4fced31ef958c688 /usr.bin/netstat
parent3d70bd8faf8f118b28f42f9b825ea66b66496824 (diff)
Print the correct field, sb_timeo has been replaced by sb_timeo_nsecs.
Breakage reported by espie@, ok bluhm@
Diffstat (limited to 'usr.bin/netstat')
-rw-r--r--usr.bin/netstat/inet.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/netstat/inet.c b/usr.bin/netstat/inet.c
index f0f25544e6d..432647e56c4 100644
--- a/usr.bin/netstat/inet.c
+++ b/usr.bin/netstat/inet.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: inet.c,v 1.167 2019/12/08 11:08:22 sashan Exp $ */
+/* $OpenBSD: inet.c,v 1.168 2020/01/15 14:02:37 mpi Exp $ */
/* $NetBSD: inet.c,v 1.14 1995/10/03 21:42:37 thorpej Exp $ */
/*
@@ -1379,7 +1379,7 @@ sockbuf_dump(struct sockbuf *sb, const char *name)
printf("%s ", name);
p("%#.8x", sb_flagsintr, ", ");
p("%#.4x", sb_flags, ", ");
- p("%u", sb_timeo, "\n ");
+ p("%llu", sb_timeo_nsecs, "\n ");
#undef p
}