From 86153c65cad10b0459d0f87bbe227a1ebe40f4ea Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Fri, 4 Nov 2016 20:44:00 -0400 Subject: [PATCH] src/afsd/afsd.c: Fix misleading indentation MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Fixes these warnings (errors with --enable-checking) from GCC 6.2: afsd.c: In function ‘afsd_run’: afsd.c:2176:6: error: this ‘if’ clause does not guard... [-Werror=misleading-indentation] if (enable_rxbind) ^~ afsd.c:2178:3: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘if’ afsd_syscall(AFSOP_ADVISEADDR, code, addrbuf, maskbuf, mtubuf); ^~~~~~~~~~~~ afsd.c:2487:5: error: this ‘if’ clause does not guard... [-Werror=misleading-indentation] if (afsd_debug) ^~ afsd.c:2490:2: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘if’ afsd_syscall(AFSOP_GO, 0); ^~~~~~~~~~~~ Change-Id: Ic4769046dc06bb58d61428ac08ea12a2f70743e9 Reviewed-on: https://gerrit.openafs.org/12438 Reviewed-by: Benjamin Kaduk Tested-by: BuildBot --- src/afsd/afsd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/afsd/afsd.c b/src/afsd/afsd.c index dd63963c5..0976099f4 100644 --- a/src/afsd/afsd.c +++ b/src/afsd/afsd.c @@ -2175,7 +2175,7 @@ afsd_run(void) if (code > 0) { if (enable_rxbind) code = code | 0x80000000; - afsd_syscall(AFSOP_ADVISEADDR, code, addrbuf, maskbuf, mtubuf); + afsd_syscall(AFSOP_ADVISEADDR, code, addrbuf, maskbuf, mtubuf); } else printf("ADVISEADDR: Error in specifying interface addresses:%s\n", reason); @@ -2487,7 +2487,7 @@ afsd_run(void) if (afsd_debug) printf("%s: Calling AFSOP_GO with cacheSetTime = %d\n", rn, 0); - afsd_syscall(AFSOP_GO, 0); + afsd_syscall(AFSOP_GO, 0); /* * At this point, we have finished passing the kernel all the info -- 2.39.5