From: Anders Kaseorg Date: Sat, 5 Nov 2016 00:48:02 +0000 (-0400) Subject: src/tools/rxperf/rxperf.c: Fix misleading indentation X-Git-Tag: upstream/1.8.0_pre1^2~24 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=e8f066dede63648d7d54c632e0e257c80db6effa;p=packages%2Fo%2Fopenafs.git src/tools/rxperf/rxperf.c: Fix misleading indentation Fixes these warnings (errors with --enable-checking) from GCC 6.2: rxperf.c: In function ‘rxperf_server’: rxperf.c:930:4: error: this ‘if’ clause does not guard... [-Werror=misleading-indentation] if (ptr && *ptr != '\0') ^~ rxperf.c:932:6: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘if’ break; ^~~~~ rxperf.c: In function ‘rxperf_client’: rxperf.c:1102:4: error: this ‘if’ clause does not guard... [-Werror=misleading-indentation] if (ptr && *ptr != '\0') ^~ rxperf.c:1104:6: note: ...this statement, but the latter is misleadingly indented as if it is guarded by the ‘if’ break; ^~~~~ Change-Id: I4e8e1f75ec14fa9f95441275cfc136adbb448e9e Reviewed-on: https://gerrit.openafs.org/12440 Reviewed-by: Benjamin Kaduk Tested-by: BuildBot --- diff --git a/src/tools/rxperf/rxperf.c b/src/tools/rxperf/rxperf.c index c127ecd2f..8d90b1bc5 100644 --- a/src/tools/rxperf/rxperf.c +++ b/src/tools/rxperf/rxperf.c @@ -926,9 +926,9 @@ rxperf_server(int argc, char **argv) hotthreads = 1; break; case 'm': - maxmtu = strtol(optarg, &ptr, 0); - if (ptr && *ptr != '\0') - errx(1, "can't resolve rx maxmtu to use"); + maxmtu = strtol(optarg, &ptr, 0); + if (ptr && *ptr != '\0') + errx(1, "can't resolve rx maxmtu to use"); break; case 'u': udpbufsz = strtol(optarg, &ptr, 0) * 1024; @@ -1098,9 +1098,9 @@ rxperf_client(int argc, char **argv) nojumbo=1; break; case 'm': - maxmtu = strtol(optarg, &ptr, 0); - if (ptr && *ptr != '\0') - errx(1, "can't resolve rx maxmtu to use"); + maxmtu = strtol(optarg, &ptr, 0); + if (ptr && *ptr != '\0') + errx(1, "can't resolve rx maxmtu to use"); break; case 'u': udpbufsz = strtol(optarg, &ptr, 0) * 1024;