Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 May 2023 14:55:00 GMT
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 5b8ce85e1a72 - main - ifconfig: Fix the build
Message-ID:  <202305221455.34MEt0ZB091794@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202305221455.34MEt0ZB091794>