diff options
Diffstat (limited to 'pr/tests/semapong.c')
-rw-r--r-- | pr/tests/semapong.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/pr/tests/semapong.c b/pr/tests/semapong.c index 37940dd4..954f90f1 100644 --- a/pr/tests/semapong.c +++ b/pr/tests/semapong.c @@ -34,7 +34,9 @@ int main(int argc, char **argv) PLOptState *opt = PL_CreateOptState(argc, argv, "dc:h"); while (PL_OPT_EOL != (os = PL_GetNextOpt(opt))) { - if (PL_OPT_BAD == os) continue; + if (PL_OPT_BAD == os) { + continue; + } switch (opt->option) { case 'd': /* debug mode */ debug_mode = PR_TRUE; @@ -84,7 +86,9 @@ int main(int argc, char **argv) exit(1); } if (*counter_addr == 2*i+1) { - if (debug_mode) printf("process 2: counter = %d\n", *counter_addr); + if (debug_mode) { + printf("process 2: counter = %d\n", *counter_addr); + } } else { fprintf(stderr, "process 2: counter should be %d but is %d\n", 2*i+1, *counter_addr); |