summaryrefslogtreecommitdiffstats
path: root/nsprpub/pr/tests/sema.c
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2020-01-02 21:01:38 +0100
committerwolfbeast <mcwerewolf@wolfbeast.com>2020-01-02 21:01:38 +0100
commitf7d30133221896638f7bf4f66c504255c4b14f48 (patch)
tree5f3e07a049f388a3a309a615b8884318f6668a98 /nsprpub/pr/tests/sema.c
parent26b297510a11758727438df4669357a2a2bc42ce (diff)
downloadUXP-f7d30133221896638f7bf4f66c504255c4b14f48.tar
UXP-f7d30133221896638f7bf4f66c504255c4b14f48.tar.gz
UXP-f7d30133221896638f7bf4f66c504255c4b14f48.tar.lz
UXP-f7d30133221896638f7bf4f66c504255c4b14f48.tar.xz
UXP-f7d30133221896638f7bf4f66c504255c4b14f48.zip
Issue #1338 - Part 1: Update NSPR to 4.24
Diffstat (limited to 'nsprpub/pr/tests/sema.c')
-rw-r--r--nsprpub/pr/tests/sema.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/nsprpub/pr/tests/sema.c b/nsprpub/pr/tests/sema.c
index 915fa30f8..76198eb04 100644
--- a/nsprpub/pr/tests/sema.c
+++ b/nsprpub/pr/tests/sema.c
@@ -31,7 +31,9 @@ void ThreadFunc(void *arg)
exit(1);
}
if (counter == 2*i+1) {
- if (debug_mode) printf("thread 2: counter = %d\n", counter);
+ if (debug_mode) {
+ printf("thread 2: counter = %d\n", counter);
+ }
} else {
fprintf(stderr, "thread 2: counter should be %d but is %d\n",
2*i+1, counter);
@@ -61,7 +63,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;
@@ -98,7 +102,7 @@ int main(int argc, char **argv)
exit(1);
}
thred = PR_CreateThread(PR_USER_THREAD, ThreadFunc, NULL,
- PR_PRIORITY_NORMAL, PR_GLOBAL_THREAD, PR_JOINABLE_THREAD, 0);
+ PR_PRIORITY_NORMAL, PR_GLOBAL_THREAD, PR_JOINABLE_THREAD, 0);
if (NULL == thred) {
fprintf(stderr, "PR_CreateThread failed\n");
exit(1);
@@ -113,7 +117,9 @@ int main(int argc, char **argv)
exit(1);
}
if (counter == 2*i) {
- if (debug_mode) printf("thread 1: counter = %d\n", counter);
+ if (debug_mode) {
+ printf("thread 1: counter = %d\n", counter);
+ }
} else {
fprintf(stderr, "thread 1: counter should be %d but is %d\n",
2*i, counter);