aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/ndp
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2023-04-24 15:53:49 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2023-04-24 15:53:49 +0000
commit4b75b42ddb8b48c8174bfdb361e7ad1e452e2fe8 (patch)
treea4e678c951b04202bfb956d85fb1dfbf92e90542 /usr.sbin/ndp
parentbd22d268d36c94d3806890a0713697ccd1e1f796 (diff)
downloadsrc-4b75b42ddb8b48c8174bfdb361e7ad1e452e2fe8.tar.gz
src-4b75b42ddb8b48c8174bfdb361e7ad1e452e2fe8.zip
ndp: Use valid prototypes for function declarations with no arguments.
Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D39729
Diffstat (limited to 'usr.sbin/ndp')
-rw-r--r--usr.sbin/ndp/ndp.c16
1 files 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];