git: 5b8ce85e1a72 - main - ifconfig: Fix the build
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 22 May 2023 14:55:00 UTC
The branch main has been updated by markj:
URL: https://cgit.FreeBSD.org/src/commit/?id=5b8ce85e1a72d2c9541cb344b4e157f38f6a5d6c
commit 5b8ce85e1a72d2c9541cb344b4e157f38f6a5d6c
Author: Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2023-05-22 14:53:38 +0000
Commit: Mark Johnston <markj@FreeBSD.org>
CommitDate: 2023-05-22 14:53:38 +0000
ifconfig: Fix the build
Fix indentation in warn_nomask() while here.
Fixes: 54418f79fd29 ("ifconfig: switch IPv4/IPv6 address manipulations to Netlink")
---
sbin/ifconfig/af_inet.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/sbin/ifconfig/af_inet.c b/sbin/ifconfig/af_inet.c
index ab2b01320d04..53a9595653ba 100644
--- a/sbin/ifconfig/af_inet.c
+++ b/sbin/ifconfig/af_inet.c
@@ -382,12 +382,12 @@ in_setdefaultmask_nl(void)
#endif
static void
-warn_nomask(ifflags)
+warn_nomask(int ifflags)
{
- if ((ifflags & (IFF_POINTOPOINT | IFF_LOOPBACK)) == 0) {
- warnx("WARNING: setting interface address without mask "
- "is deprecated,\ndefault mask may not be correct.");
- }
+ if ((ifflags & (IFF_POINTOPOINT | IFF_LOOPBACK)) == 0) {
+ warnx("WARNING: setting interface address without mask "
+ "is deprecated,\ndefault mask may not be correct.");
+ }
}
static void