]> 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 5e67482ead70f1844ce5d1f36607826222551caf..c31da56ce9cb3e8ffcbfc65489914d700debdec2 100644 (file)
@@ -1,7 +1,6 @@
 /* glibc test for TLS in ld.so.  */
 #include <stdio.h>
 
-#include <tls.h>
 #include "tls-macros.h"
 
 
@@ -10,10 +9,9 @@ COMMON_INT_DEF(foo);
 COMMON_INT_DEF(bar);
 
 
-int
-main (void)
+static int
+do_test (void)
 {
-#ifdef USE_TLS
   int result = 0;
   int *ap, *bp;
 
@@ -78,7 +76,7 @@ main (void)
     }
 
   return result;
-#else
-  return 0;
-#endif
 }
+
+
+#include <support/test-driver.c>