systat: fix build with newer ncurses

This commit is contained in:
Baptiste Daroussin 2024-06-20 15:10:38 +02:00
parent 822ca32763
commit 35e941ce55
2 changed files with 2 additions and 2 deletions

View File

@ -245,7 +245,7 @@ showports(void)
if (sp)
printw("%s ", sp->s_name);
else
printw("%d ", p->port);
printw("%ld ", p->port);
}
}

View File

@ -276,7 +276,7 @@ showsctp(void)
domode(&stats);
#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 R(row, stat) DO(stat, row, 38)
L(1, sctps_activeestab); R(1, sctps_outpackets);