fix SHOW to work on any platform
This commit is contained in:
parent
0a15898a28
commit
0c28135c93
|
@ -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>
|
* Copyright (c) 1999 Andy Doran <ad@NetBSD.org>
|
||||||
|
@ -29,7 +29,7 @@
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
#ifndef lint
|
#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 */
|
#endif /* not lint */
|
||||||
|
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
|
@ -58,7 +58,7 @@ __RCSID("$NetBSD: tcp.c,v 1.4 2000/04/27 00:30:51 jdc Exp $");
|
||||||
|
|
||||||
#define LHD(row, str) mvwprintw(wnd, row, 10, str)
|
#define LHD(row, str) mvwprintw(wnd, row, 10, str)
|
||||||
#define RHD(row, str) mvwprintw(wnd, row, 45, 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;
|
static struct tcpstat curstat, oldstat;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue