1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-29 11:41:21 +03:00

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*.
This commit is contained in:
Richard Henderson
2012-02-09 11:20:27 -08:00
parent e216c0121a
commit 57b957eb04
2 changed files with 5 additions and 1 deletions

View File

@ -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;
}