summaryrefslogtreecommitdiffstats
path: root/tools/regression/pthread/cv_cancel1
diff options
context:
space:
mode:
Diffstat (limited to 'tools/regression/pthread/cv_cancel1')
-rw-r--r--tools/regression/pthread/cv_cancel1/cv_cancel1.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/regression/pthread/cv_cancel1/cv_cancel1.c b/tools/regression/pthread/cv_cancel1/cv_cancel1.c
index 22d8218..cacad44 100644
--- a/tools/regression/pthread/cv_cancel1/cv_cancel1.c
+++ b/tools/regression/pthread/cv_cancel1/cv_cancel1.c
@@ -31,8 +31,8 @@
#define NLOOPS 10
-pthread_mutex_t m;
-pthread_cond_t cv;
+pthread_mutex_t m = PTHREAD_MUTEX_INITIALIZER;
+pthread_cond_t cv = PTHREAD_COND_INITIALIZER;
int wake;
int stop;
OpenPOWER on IntegriCloud