git: 4eb741473379 - stable/14 - netstat: remove unneeded cast

From: Michael Tuexen <tuexen_at_FreeBSD.org>
Date: Fri, 05 Sep 2025 19:02:33 UTC
The branch stable/14 has been updated by tuexen:

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

commit 4eb741473379cec354a5f478a6cc94a31d505dfd
Author:     Michael Tuexen <tuexen@FreeBSD.org>
AuthorDate: 2025-08-12 17:45:54 +0000
Commit:     Michael Tuexen <tuexen@FreeBSD.org>
CommitDate: 2025-09-05 19:02:22 +0000

    netstat: remove unneeded cast
    
    delivered is already an uint64_t, so no need to cast it to that
    type.
    
    Sponsored by:           Netflix, Inc.
    
    (cherry picked from commit 6bca82843e5605fc242211093b56d1129eb4307c)
---
 usr.bin/netstat/inet.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/usr.bin/netstat/inet.c b/usr.bin/netstat/inet.c
index 857d19038901..93ce8fd59cb7 100644
--- a/usr.bin/netstat/inet.c
+++ b/usr.bin/netstat/inet.c
@@ -952,7 +952,7 @@ udp_stats(u_long off, const char *name, int af1 __unused, int proto __unused)
 		    udpstat.udps_fullsock;
 	if (delivered || sflag <= 1)
 		xo_emit("\t{:delivered-packets/%ju} {N:/delivered}\n",
-		    (uint64_t)delivered);
+		    delivered);
 	p(udps_opackets, "{:output-packets/%ju} {N:/datagram%s output}\n");
 	/* the next statistic is cumulative in udps_noportbcast */
 	p(udps_filtermcast, "{:multicast-source-filter-matches/%ju} "