Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/systat fix SHOW to work on any platform



details:   https://anonhg.NetBSD.org/src/rev/f2f55935c820
branches:  trunk
changeset: 485502:f2f55935c820
user:      matt <matt%NetBSD.org@localhost>
date:      Sat Apr 29 04:36:16 2000 +0000

description:
fix SHOW to work on any platform

diffstat:

 usr.bin/systat/tcp.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r a7004b771710 -r f2f55935c820 usr.bin/systat/tcp.c
--- a/usr.bin/systat/tcp.c      Sat Apr 29 03:46:24 2000 +0000
+++ b/usr.bin/systat/tcp.c      Sat Apr 29 04:36:16 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: tcp.c,v 1.4 2000/04/27 00:30:51 jdc Exp $      */
+/*     $NetBSD: tcp.c,v 1.5 2000/04/29 04:36:16 matt Exp $     */
 
 /*
  * Copyright (c) 1999 Andy Doran <ad%NetBSD.org@localhost>
@@ -29,7 +29,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: tcp.c,v 1.4 2000/04/27 00:30:51 jdc Exp $");
+__RCSID("$NetBSD: tcp.c,v 1.5 2000/04/29 04:36:16 matt Exp $");
 #endif /* not lint */
 
 #include <sys/param.h>
@@ -58,7 +58,7 @@
 
 #define LHD(row, str)          mvwprintw(wnd, row, 10, str)
 #define RHD(row, str)          mvwprintw(wnd, row, 45, str)
-#define SHOW(row, col, stat)   mvwprintw(wnd, row, col, "%9qu", curstat.stat)
+#define SHOW(row, col, stat)   mvwprintw(wnd, row, col, "%9llu", (unsigned long long) curstat.stat)
 
 static struct tcpstat curstat, oldstat;
 



Home | Main Index | Thread Index | Old Index