]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
reversed sense if test
authorMark Andrews <marka@isc.org>
Mon, 12 Sep 2005 07:10:41 +0000 (07:10 +0000)
committerMark Andrews <marka@isc.org>
Mon, 12 Sep 2005 07:10:41 +0000 (07:10 +0000)
lib/isc/win32/thread.c

index 57e483a6410dd697c9274842141a718ef1dede2c..d20dccf20eaae04baca65befdb5dfa68891feccb 100644 (file)
@@ -15,7 +15,7 @@
  * PERFORMANCE OF THIS SOFTWARE.
  */
 
-/* $Id: thread.c,v 1.18.18.2 2005/09/09 14:11:05 marka Exp $ */
+/* $Id: thread.c,v 1.18.18.3 2005/09/12 07:10:41 marka Exp $ */
 
 #include <config.h>
 
@@ -66,26 +66,26 @@ isc_thread_setconcurrency(unsigned int level) {
         * call exists
         */
 }
-\r
-void *\r
-isc_key_getspecific(isc_thread_key_t key) {\r
-       return(TlsGetValue(key));\r
-}\r
-\r
-int\r
-isc_key_setspecific(isc_thread_key_t key, void *value) {\r
-       return (TlsSetValue(key, value) ? 0 : GetLastError());\r
-}\r
-\r
-int\r
-isc_key_create(isc_thread_key_t *key, void (*func)(void *)) {\r
-       *key = TlsAlloc();\r
-\r
-       return ((*key == -1) ? 0 : GetLastError());\r
-}\r
-\r
-int\r
-isc_key_destroy(isc_thread_key_t key) {\r
-       return (TlsFree(key) ? 0 : GetLastError());\r
-}\r
-                       
\ No newline at end of file
+
+void *
+isc_key_getspecific(isc_thread_key_t key) {
+       return(TlsGetValue(key));
+}
+
+int
+isc_key_setspecific(isc_thread_key_t key, void *value) {
+       return (TlsSetValue(key, value) ? 0 : GetLastError());
+}
+
+int
+isc_key_create(isc_thread_key_t *key, void (*func)(void *)) {
+       *key = TlsAlloc();
+
+       return ((*key != -1) ? 0 : GetLastError());
+}
+
+int
+isc_key_destroy(isc_thread_key_t key) {
+       return (TlsFree(key) ? 0 : GetLastError());
+}
+