Fix logic bug introduced on 2007-05-06.
[gnulib.git] / lib / tls.c
index 567fdac..8a203b3 100644 (file)
--- a/lib/tls.c
+++ b/lib/tls.c
@@ -1,5 +1,5 @@
 /* Thread-local storage in multithreaded situations.
-   Copyright (C) 2005 Free Software Foundation, Inc.
+   Copyright (C) 2005-2007 Free Software Foundation, Inc.
 
    This program is free software; you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
@@ -17,9 +17,7 @@
 
 /* Written by Bruno Haible <bruno@clisp.org>, 2005.  */
 
-#ifdef HAVE_CONFIG_H
-# include <config.h>
-#endif
+#include <config.h>
 
 #include "tls.h"
 
@@ -43,7 +41,7 @@
 
 /* ------------------------- gl_tls_key_t datatype ------------------------- */
 
-void
+void *
 glthread_tls_get (thread_key_t key)
 {
   void *value;