git: 35e941ce5520 - main - systat: fix build with newer ncurses
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 20 Jun 2024 13:12:38 UTC
The branch main has been updated by bapt:
URL: https://cgit.FreeBSD.org/src/commit/?id=35e941ce5520b8ef710bb388bd63460aa0ce63eb
commit 35e941ce5520b8ef710bb388bd63460aa0ce63eb
Author: Baptiste Daroussin <bapt@FreeBSD.org>
AuthorDate: 2024-06-20 13:10:38 +0000
Commit: Baptiste Daroussin <bapt@FreeBSD.org>
CommitDate: 2024-06-20 13:10:38 +0000
systat: fix build with newer ncurses
---
usr.bin/systat/netcmds.c | 2 +-
usr.bin/systat/sctp.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/usr.bin/systat/netcmds.c b/usr.bin/systat/netcmds.c
index 5b6cb2163b7b..c0bbda7dee8a 100644
--- a/usr.bin/systat/netcmds.c
+++ b/usr.bin/systat/netcmds.c
@@ -245,7 +245,7 @@ showports(void)
if (sp)
printw("%s ", sp->s_name);
else
- printw("%d ", p->port);
+ printw("%ld ", p->port);
}
}
diff --git a/usr.bin/systat/sctp.c b/usr.bin/systat/sctp.c
index abe4d0e68e04..26abbec68da8 100644
--- a/usr.bin/systat/sctp.c
+++ b/usr.bin/systat/sctp.c
@@ -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);