Coding Syle Cleanups. Signed-Off-By: <michal.simek@petalogix.com>.
diff --git a/testcases/kernel/syscalls/vhangup/vhangup02.c b/testcases/kernel/syscalls/vhangup/vhangup02.c
index b18feab..707ac03 100644
--- a/testcases/kernel/syscalls/vhangup/vhangup02.c
+++ b/testcases/kernel/syscalls/vhangup/vhangup02.c
@@ -66,8 +66,8 @@
int status;
/* parse standard options */
- if ((msg = parse_opts(argc, argv, (option_t *)NULL, NULL)) !=
- (char *) NULL) {
+ if ((msg = parse_opts(argc, argv, (option_t *) NULL, NULL)) !=
+ (char *)NULL) {
tst_brkm(TBROK, NULL, "OPTION PARSING ERROR - %s", msg);
}
@@ -82,16 +82,14 @@
if ((pid = FORK_OR_VFORK()) < 0) {
tst_brkm(TFAIL, cleanup, "fork failed");
- /*NOTREACHED*/
- } else if (pid > 0) { /* parent */
+ /*NOTREACHED*/} else if (pid > 0) { /* parent */
waitpid(pid, &status, 0);
_exit(0);
- } else { /* child */
+ } else { /* child */
pid1 = setsid();
if (pid1 < 0) {
tst_brkm(TFAIL, cleanup, "setsid failed");
- /*NOTREACHED*/
- }
+ /*NOTREACHED*/}
TEST(vhangup());
if (TEST_RETURN == -1) {
tst_resm(TFAIL, "vhangup() failed, errno:%d",
@@ -102,9 +100,7 @@
}
}
cleanup();
- /*NOTREACHED*/
-
- return 0;
+ /*NOTREACHED*/ return 0;
}
@@ -112,8 +108,7 @@
* setup()
* performs all ONE TIME setup for this test
*/
-void
-setup(void)
+void setup(void)
{
/* Pause if that option was specified
* TEST_PAUSE contains the code to fork the test with the -c option.
@@ -126,8 +121,7 @@
* performs all ONE TIME cleanup for this test at
* completion or premature exit
*/
-void
-cleanup(void)
+void cleanup(void)
{
/*
* print timing stats if that option was specified.
@@ -137,5 +131,4 @@
/* exit with return code appropriate for results */
tst_exit();
- /*NOTREACHED*/
-}
+ /*NOTREACHED*/}