]> git.sur5r.net Git - openldap/commitdiff
thr_yield() returns void, so do not use its "return value" (ITS#4469)
authorHallvard Furuseth <hallvard@openldap.org>
Mon, 3 Apr 2006 17:10:38 +0000 (17:10 +0000)
committerHallvard Furuseth <hallvard@openldap.org>
Mon, 3 Apr 2006 17:10:38 +0000 (17:10 +0000)
libraries/libldap_r/thr_posix.c

index c867e5715bebe9a895b2d8f2c9fb8d23c814c877..ce48b32b53000e919b28449f138745bb055e6422 100644 (file)
@@ -224,7 +224,8 @@ ldap_pvt_thread_yield( void )
 #endif
        return 0;
 #elif HAVE_THR_YIELD
-       return thr_yield();
+       thr_yield();
+       return 0;
 
 #elif HAVE_PTHREADS == 10
        return sched_yield();