summaryrefslogtreecommitdiff
path: root/mysys/my_thr_init.c
diff options
context:
space:
mode:
authorunknown <cmiller@zippy.cornsilk.net>2007-04-20 13:49:06 -0400
committerunknown <cmiller@zippy.cornsilk.net>2007-04-20 13:49:06 -0400
commit07d887be94b179a2bd0cd707a076e9517181102d (patch)
treeada1ddba95ef4d18b6ec04be321d0825a1bbc1d4 /mysys/my_thr_init.c
parent4c865ebcaaaa5e5b2caf2b70a367aeebe3de3447 (diff)
downloadmariadb-git-07d887be94b179a2bd0cd707a076e9517181102d.tar.gz
Avoid compiler warnings.
Diffstat (limited to 'mysys/my_thr_init.c')
-rw-r--r--mysys/my_thr_init.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mysys/my_thr_init.c b/mysys/my_thr_init.c
index da465385b3e..07a92e34dd3 100644
--- a/mysys/my_thr_init.c
+++ b/mysys/my_thr_init.c
@@ -82,9 +82,9 @@ my_bool my_thread_global_init(void)
int pth_ret;
thd_lib_detected= get_thread_lib();
- if (pth_ret= pthread_key_create(&THR_KEY_mysys, NULL))
+ if ((pth_ret= pthread_key_create(&THR_KEY_mysys, NULL)) != 0)
{
- fprintf(stderr,"Can't initialize threads: pthread error %d\n", pth_ret);
+ fprintf(stderr,"Can't initialize threads: error %d\n", pth_ret);
return 1;
}