diff options
author | Ulrich Drepper <drepper@redhat.com> | 2003-04-27 06:20:14 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2003-04-27 06:20:14 +0000 |
commit | 541765b6b478c98825eb35759ed558489448771f (patch) | |
tree | 0121a45ee77606a395dce5719ef14f65d57fb459 /elf/tst-tls8.c | |
parent | 669863e27194ac7ddeffa2843d96949a1e082ece (diff) | |
download | glibc-541765b6b478c98825eb35759ed558489448771f.tar.gz |
Update.
2003-04-26 Ulrich Drepper <drepper@redhat.com>
* elf/dl-close.c [USE_TLS && TLS_TCB_AT_TP] (_dl_close): Reimplement
tracking of freed memory in static TLS block.
* elf/Makefile: Add rules to build and run tst-tls13.
* elf/tst-tls13.c: New file.
* elf/tst-tlsmod13.c: New file.
* elf/tst-tlsmod13a.c: New file.
* elf/tst-tls8.c: Adjust types of variables to avoid warnings.
* elf/dl-reloc.c: Pretty printing.
Diffstat (limited to 'elf/tst-tls8.c')
-rw-r--r-- | elf/tst-tls8.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/elf/tst-tls8.c b/elf/tst-tls8.c index e300bc53d8..97b4a25652 100644 --- a/elf/tst-tls8.c +++ b/elf/tst-tls8.c @@ -19,8 +19,8 @@ do_test (void) void *h1; void *h2; int i; - int modid1 = -1; - int modid2 = -1; + size_t modid1 = (size_t) -1; + size_t modid2 = (size_t) -1; int *bazp; for (i = 0; i < 10; ++i) @@ -35,7 +35,7 @@ do_test (void) /* Dirty test code here: we peek into a private data structure. We make sure that the module gets assigned the same ID every time. The value of the first round is used. */ - if (modid1 == -1) + if (modid1 == (size_t) -1) modid1 = ((struct link_map *) h1)->l_tls_modid; else if (((struct link_map *) h1)->l_tls_modid != modid1) { @@ -65,7 +65,7 @@ do_test (void) /* Dirty test code here: we peek into a private data structure. We make sure that the module gets assigned the same ID every time. The value of the first round is used. */ - if (modid2 == -1) + if (modid2 == (size_t) -1) modid2 = ((struct link_map *) h1)->l_tls_modid; else if (((struct link_map *) h1)->l_tls_modid != modid2) { |