diff options
author | Richard Henderson <rth@twiddle.net> | 2012-02-09 11:20:27 -0800 |
---|---|---|
committer | Richard Henderson <rth@twiddle.net> | 2012-02-09 11:20:27 -0800 |
commit | 57b957eb048c9b6aad52490ebe70d20a7c2b6caa (patch) | |
tree | 84ae8bfe917c4422f21f8f61ce421fa512a4e10c /elf/dl-tls.c | |
parent | e216c0121a715225802810af4a34daa3ac7b0605 (diff) | |
download | glibc-57b957eb048c9b6aad52490ebe70d20a7c2b6caa.zip glibc-57b957eb048c9b6aad52490ebe70d20a7c2b6caa.tar.gz glibc-57b957eb048c9b6aad52490ebe70d20a7c2b6caa.tar.bz2 |
Avoid pointer type mismatch warning.
update_get_addr returns a link_map*, but the return expression
was of type char*. Fix by relying on gcc's void* arithmetic
extension and auto-conversion from void*.
Diffstat (limited to 'elf/dl-tls.c')
-rw-r--r-- | elf/dl-tls.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/elf/dl-tls.c b/elf/dl-tls.c index 4358616..90f7a6d 100644 --- a/elf/dl-tls.c +++ b/elf/dl-tls.c @@ -756,7 +756,7 @@ update_get_addr (GET_ADDR_ARGS) if (__builtin_expect (p == TLS_DTV_UNALLOCATED, 0)) return tls_get_addr_tail (GET_ADDR_PARAM, dtv, the_map); - return (char *) p + GET_ADDR_OFFSET; + return (void *) p + GET_ADDR_OFFSET; } |