]> git.ipfire.org Git - thirdparty/glibc.git/blobdiff - elf/tst-tls1.c
Fix bad pointer / leak in regex code
[thirdparty/glibc.git] / elf / tst-tls1.c
index 74e9a915b38a1b25995c09709c746b5855c58631..c31da56ce9cb3e8ffcbfc65489914d700debdec2 100644 (file)
@@ -1,22 +1,17 @@
 /* glibc test for TLS in ld.so.  */
 #include <stdio.h>
 
-#include <tls.h>
 #include "tls-macros.h"
 
 
-#ifdef USE_TLS
 /* Two common 'int' variables in TLS.  */
 COMMON_INT_DEF(foo);
 COMMON_INT_DEF(bar);
-#endif
 
 
-#define TEST_FUNCTION do_test ()
 static int
 do_test (void)
 {
-#ifdef USE_TLS
   int result = 0;
   int *ap, *bp;
 
@@ -81,10 +76,7 @@ do_test (void)
     }
 
   return result;
-#else
-  return 0;
-#endif
 }
 
 
-#include "../test-skeleton.c"
+#include <support/test-driver.c>