Date: Sat, 7 Dec 2013 15:49:16 +0000 (UTC) From: Konstantin Belousov <kib@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r259072 - head/libexec/rtld-elf Message-ID: <201312071549.rB7FnG3i015174@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: kib Date: Sat Dec 7 15:49:16 2013 New Revision: 259072 URL: http://svnweb.freebsd.org/changeset/base/259072 Log: Cast Elf_Addr to void * to match the free_aligned() argument type. Found by: gcc Sponsored by: The FreeBSD Foundation MFC after: 6 days Modified: head/libexec/rtld-elf/rtld.c Modified: head/libexec/rtld-elf/rtld.c ============================================================================== --- head/libexec/rtld-elf/rtld.c Sat Dec 7 15:24:43 2013 (r259071) +++ head/libexec/rtld-elf/rtld.c Sat Dec 7 15:49:16 2013 (r259072) @@ -4369,11 +4369,11 @@ free_tls(void *tls, size_t tcbsize, size tlsstart = tlsend - size; for (i = 0; i < dtvsize; i++) { if (dtv[i + 2] != 0 && (dtv[i + 2] < tlsstart || dtv[i + 2] > tlsend)) { - free_aligned(dtv[i + 2]); + free_aligned((void *)dtv[i + 2]); } } - free_aligned(tlsstart); + free_aligned((void *)tlsstart); free((void*) dtv); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201312071549.rB7FnG3i015174>