netstat: Use valid prototypes for function declarations with no arguments.

Reviewed by:	emaste
Differential Revision:	https://reviews.freebsd.org/D39731
This commit is contained in:
John Baldwin 2023-04-24 08:53:50 -07:00
parent 672eba2435
commit 4640fd28a1
2 changed files with 4 additions and 4 deletions

View File

@ -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;

View File

@ -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;