summaryrefslogtreecommitdiff
path: root/nsprpub/pr/tests/semaping.c
diff options
context:
space:
mode:
Diffstat (limited to 'nsprpub/pr/tests/semaping.c')
-rw-r--r--nsprpub/pr/tests/semaping.c15
1 files changed, 6 insertions, 9 deletions
diff --git a/nsprpub/pr/tests/semaping.c b/nsprpub/pr/tests/semaping.c
index 007a5239cf..2f31bd0bc7 100644
--- a/nsprpub/pr/tests/semaping.c
+++ b/nsprpub/pr/tests/semaping.c
@@ -8,17 +8,10 @@
#include <stdio.h>
-#ifdef SYMBIAN
-#define SHM_NAME "c:\\data\\counter"
-#define SEM_NAME1 "c:\\data\\foo.sem"
-#define SEM_NAME2 "c:\\data\\bar.sem"
-#define EXE_NAME "nspr_tests_semapong.exe"
-#else
#define SHM_NAME "/tmp/counter"
#define SEM_NAME1 "/tmp/foo.sem"
#define SEM_NAME2 "/tmp/bar.sem"
#define EXE_NAME "semapong"
-#endif
#define SEM_MODE 0666
#define SHM_MODE 0666
#define ITERATIONS 1000
@@ -49,7 +42,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;
@@ -129,7 +124,9 @@ int main(int argc, char **argv)
exit(1);
}
if (*counter_addr == 2*i) {
- if (debug_mode) printf("process 1: counter = %d\n", *counter_addr);
+ if (debug_mode) {
+ printf("process 1: counter = %d\n", *counter_addr);
+ }
} else {
fprintf(stderr, "process 1: counter should be %d but is %d\n",
2*i, *counter_addr);