From: Anders Kaseorg Date: Sat, 5 Nov 2016 00:44:00 +0000 (-0400) Subject: src/afsd/afsd.c: Fix misleading indentation X-Git-Tag: upstream/1.8.0_pre1^2~26 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=86153c65cad10b0459d0f87bbe227a1ebe40f4ea;p=packages%2Fo%2Fopenafs.git src/afsd/afsd.c: Fix misleading indentation 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 --- 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