git: 4b75b42ddb8b - main - ndp: Use valid prototypes for function declarations with no arguments.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 24 Apr 2023 15:54:10 UTC
The branch main has been updated by jhb:
URL: https://cgit.FreeBSD.org/src/commit/?id=4b75b42ddb8b48c8174bfdb361e7ad1e452e2fe8
commit 4b75b42ddb8b48c8174bfdb361e7ad1e452e2fe8
Author: John Baldwin <jhb@FreeBSD.org>
AuthorDate: 2023-04-24 15:53:49 +0000
Commit: John Baldwin <jhb@FreeBSD.org>
CommitDate: 2023-04-24 15:53:49 +0000
ndp: Use valid prototypes for function declarations with no arguments.
Reviewed by: emaste
Differential Revision: https://reviews.freebsd.org/D39729
---
usr.sbin/ndp/ndp.c | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/usr.sbin/ndp/ndp.c b/usr.sbin/ndp/ndp.c
index 5097c156e624..eaf652507e09 100644
--- a/usr.sbin/ndp/ndp.c
+++ b/usr.sbin/ndp/ndp.c
@@ -360,7 +360,7 @@ file(char *name)
}
static void
-getsocket()
+getsocket(void)
{
if (s < 0) {
s = socket(PF_ROUTE, SOCK_RAW, 0);
@@ -854,7 +854,7 @@ ndp_ether_aton(char *a, u_char *n)
}
static void
-usage()
+usage(void)
{
printf("usage: ndp [-nt] hostname\n");
printf(" ndp [-nt] -a | -c | -p | -r | -H | -P | -R\n");
@@ -1096,7 +1096,7 @@ ifinfo(char *ifname, int argc, char **argv)
#endif
static void
-rtrlist()
+rtrlist(void)
{
int mib[] = { CTL_NET, PF_INET6, IPPROTO_ICMPV6, ICMPV6CTL_ND6_DRLIST };
char *buf;
@@ -1178,7 +1178,7 @@ rtrlist()
}
static void
-plist()
+plist(void)
{
int mib[] = { CTL_NET, PF_INET6, IPPROTO_ICMPV6, ICMPV6CTL_ND6_PRLIST };
char *buf;
@@ -1330,7 +1330,7 @@ plist()
}
static void
-pfx_flush()
+pfx_flush(void)
{
char dummyif[IFNAMSIZ+8];
int sock;
@@ -1345,7 +1345,7 @@ pfx_flush()
}
static void
-rtr_flush()
+rtr_flush(void)
{
char dummyif[IFNAMSIZ+8];
int sock;
@@ -1360,7 +1360,7 @@ rtr_flush()
}
static void
-harmonize_rtr()
+harmonize_rtr(void)
{
char dummyif[IFNAMSIZ+8];
int sock;
@@ -1402,7 +1402,7 @@ setdefif(char *ifname)
}
static void
-getdefif()
+getdefif(void)
{
struct in6_ndifreq ndifreq;
char ifname[IFNAMSIZ+8];