Coding Syle Cleanups. Signed-Off-By: <michal.simek@petalogix.com>.
diff --git a/testcases/kernel/syscalls/pipe/pipe01.c b/testcases/kernel/syscalls/pipe/pipe01.c
index b5e0822..e7fe75e 100644
--- a/testcases/kernel/syscalls/pipe/pipe01.c
+++ b/testcases/kernel/syscalls/pipe/pipe01.c
@@ -69,19 +69,18 @@
int main(int ac, char **av)
{
- int lc; /* loop counter */
- char *msg; /* message returned from parse_opts */
+ int lc; /* loop counter */
+ char *msg; /* message returned from parse_opts */
- int fildes[2]; /* fds for pipe read and write */
+ int fildes[2]; /* fds for pipe read and write */
char wrbuf[BUFSIZ], rebuf[BUFSIZ];
- int red, written; /* no. of chars read/written to pipe */
+ int red, written; /* no. of chars read/written to pipe */
int greater, length;
/* parse standard options */
- if ((msg = parse_opts(ac, av, (option_t *)NULL, NULL)) != (char *)NULL){
+ if ((msg = parse_opts(ac, av, (option_t *) NULL, NULL)) != (char *)NULL) {
tst_brkm(TBROK, tst_exit, "OPTION PARSING ERROR - %s", msg);
- /*NOTREACHED*/
- }
+ /*NOTREACHED*/}
setup();
@@ -133,15 +132,13 @@
}
cleanup();
- /*NOTREACHED*/
- return 0;
+ /*NOTREACHED*/ return 0;
}
/*
* setup() - performs all ONE TIME setup for this test.
*/
-void
-setup()
+void setup()
{
/* capture signals */
tst_sig(NOFORK, DEF_HANDLER, cleanup);
@@ -154,8 +151,7 @@
* cleanup() - performs all ONE TIME cleanup for this test at
* completion or premature exit.
*/
-void
-cleanup()
+void cleanup()
{
/*
* print timing stats if that option was specified.