mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-30 05:36:10 +00:00
systat: fix build with newer ncurses
This commit is contained in:
parent
822ca32763
commit
35e941ce55
|
@ -245,7 +245,7 @@ showports(void)
|
||||||
if (sp)
|
if (sp)
|
||||||
printw("%s ", sp->s_name);
|
printw("%s ", sp->s_name);
|
||||||
else
|
else
|
||||||
printw("%d ", p->port);
|
printw("%ld ", p->port);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -276,7 +276,7 @@ showsctp(void)
|
||||||
domode(&stats);
|
domode(&stats);
|
||||||
|
|
||||||
#define DO(stat, row, col) \
|
#define DO(stat, row, col) \
|
||||||
mvwprintw(wnd, row, col, "%12lu", stats.stat)
|
mvwprintw(wnd, row, col, "%12u", stats.stat)
|
||||||
#define L(row, stat) DO(stat, row, 0)
|
#define L(row, stat) DO(stat, row, 0)
|
||||||
#define R(row, stat) DO(stat, row, 38)
|
#define R(row, stat) DO(stat, row, 38)
|
||||||
L(1, sctps_activeestab); R(1, sctps_outpackets);
|
L(1, sctps_activeestab); R(1, sctps_outpackets);
|
||||||
|
|
Loading…
Reference in a new issue