Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Jun 2024 09:02:45 GMT
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: e91fd8934231 - stable/14 - systat: fix build with newer ncurses
Message-ID:  <202406270902.45R92jYO027496@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/14 has been updated by bapt:

URL: https://cgit.FreeBSD.org/src/commit/?id=e91fd89342310ec5f3af4206ee649d7b2e7de9f2

commit e91fd89342310ec5f3af4206ee649d7b2e7de9f2
Author:     Baptiste Daroussin <bapt@FreeBSD.org>
AuthorDate: 2024-06-20 13:10:38 +0000
Commit:     Baptiste Daroussin <bapt@FreeBSD.org>
CommitDate: 2024-06-27 09:01:24 +0000

    systat: fix build with newer ncurses
    
    (cherry picked from commit 35e941ce5520b8ef710bb388bd63460aa0ce63eb)
---
 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 6320dd21562d..b09a14bbf634 100644
--- a/usr.bin/systat/netcmds.c
+++ b/usr.bin/systat/netcmds.c
@@ -248,7 +248,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 928472dbfdc5..9be137700055 100644
--- a/usr.bin/systat/sctp.c
+++ b/usr.bin/systat/sctp.c
@@ -277,7 +277,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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202406270902.45R92jYO027496>