git: 4640fd28a1fe - main - netstat: Use valid prototypes for function declarations with no arguments.

From: John Baldwin <jhb_at_FreeBSD.org>
Date: Mon, 24 Apr 2023 15:54:12 UTC
The branch main has been updated by jhb:

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

commit 4640fd28a1fe569476436c98558e05ea377c0eae
Author:     John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2023-04-24 15:53:50 +0000
Commit:     John Baldwin <jhb@FreeBSD.org>
CommitDate: 2023-04-24 15:53:50 +0000

    netstat: Use valid prototypes for function declarations with no arguments.
    
    Reviewed by:    emaste
    Differential Revision:  https://reviews.freebsd.org/D39731
---
 usr.bin/netstat/mroute.c  | 4 ++--
 usr.bin/netstat/mroute6.c | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/usr.bin/netstat/mroute.c b/usr.bin/netstat/mroute.c
index a7ce983d13a2..73b51b57c89e 100644
--- a/usr.bin/netstat/mroute.c
+++ b/usr.bin/netstat/mroute.c
@@ -236,7 +236,7 @@ print_mfc(struct mfc *m, int maxvif, int *banner_printed)
 }
 
 void
-mroutepr()
+mroutepr(void)
 {
 	struct sockaddr_in sin;
 	struct sockaddr *sa = (struct sockaddr *)&sin;
@@ -411,7 +411,7 @@ mroutepr()
 }
 
 void
-mrt_stats()
+mrt_stats(void)
 {
 	struct mrtstat mrtstat;
 	u_long mstaddr;
diff --git a/usr.bin/netstat/mroute6.c b/usr.bin/netstat/mroute6.c
index 6360fd6ed4ee..e992d11e7d39 100644
--- a/usr.bin/netstat/mroute6.c
+++ b/usr.bin/netstat/mroute6.c
@@ -102,7 +102,7 @@ __FBSDID("$FreeBSD$");
 #define	WID_GRP	(Wflag ? 18 : (numeric_addr ? 16 : 18)) /* width of group column */
 
 void
-mroute6pr()
+mroute6pr(void)
 {
 	struct mf6c *mf6ctable[MF6CTBLSIZ], *mfcp;
 	struct mif6_sctl mif6table[MAXMIFS];
@@ -230,7 +230,7 @@ mroute6pr()
 }
 
 void
-mrt6_stats()
+mrt6_stats(void)
 {
 	struct mrt6stat mrtstat;