cleanup code indent
Cleanup the code indent using:
find . -name *.c -exec Lindent {} \;
It's really a big change, but can fix almost all of
the indent problem in C code, although we can't
ensure all of the changes are right, but the error
changes are really few.
Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
diff --git a/testcases/kernel/syscalls/getgroups/getgroups03.c b/testcases/kernel/syscalls/getgroups/getgroups03.c
index ae3cb1e..cce1e6f 100644
--- a/testcases/kernel/syscalls/getgroups/getgroups03.c
+++ b/testcases/kernel/syscalls/getgroups/getgroups03.c
@@ -112,14 +112,14 @@
TEST(getgroups(gidsetsize, groups_list));
if ((ret_val = TEST_RETURN) == -1) {
- tst_resm(TFAIL|TTERRNO, "getgroups failed");
+ tst_resm(TFAIL | TTERRNO, "getgroups failed");
continue;
}
if (STD_FUNCTIONAL_TEST) {
fflag = verify_groups(ret_val);
if (fflag)
tst_resm(TPASS,
- "getgroups functionality correct");
+ "getgroups functionality correct");
} else
tst_resm(TPASS, "call succeeded");
}
@@ -150,7 +150,7 @@
* getgroups()
*/
if (setgroups(ngroups, groups) == -1)
- tst_brkm(TBROK|TERRNO, cleanup, "setgroups failed");
+ tst_brkm(TBROK | TERRNO, cleanup, "setgroups failed");
}
@@ -279,13 +279,12 @@
* Now, if ngroups matches ret_val, as above comparisons of the array
* are successful, this implies that the array contents match.
*/
- if (egid_flag == 0) /* If egid is not returned */
+ if (egid_flag == 0) /* If egid is not returned */
ngroups--;
if (ngroups != ret_val) {
tst_resm(TFAIL,
"getgroups(2) returned incorrect no. of gids %d "
- "(expected %d)",
- ret_val, ngroups);
+ "(expected %d)", ret_val, ngroups);
fflag = 0;
}