mirror of
https://gitlab.freedesktop.org/libbsd/libbsd.git
synced 2025-01-09 03:08:38 +01:00
getentropy: Fix function cast for getauxval()
Warned-by: gcc
This commit is contained in:
parent
3c305f2873
commit
72a82ee262
@ -520,17 +520,17 @@ getentropy_fallback(void *buf, size_t len)
|
|||||||
#ifdef HAVE_GETAUXVAL
|
#ifdef HAVE_GETAUXVAL
|
||||||
#ifdef AT_RANDOM
|
#ifdef AT_RANDOM
|
||||||
/* Not as random as you think but we take what we are given */
|
/* Not as random as you think but we take what we are given */
|
||||||
p = (char *) getauxval(AT_RANDOM);
|
p = (char *) ((intptr_t) getauxval(AT_RANDOM));
|
||||||
if (p)
|
if (p)
|
||||||
HR(p, 16);
|
HR(p, 16);
|
||||||
#endif
|
#endif
|
||||||
#ifdef AT_SYSINFO_EHDR
|
#ifdef AT_SYSINFO_EHDR
|
||||||
p = (char *) getauxval(AT_SYSINFO_EHDR);
|
p = (char *) ((intptr_t) getauxval(AT_SYSINFO_EHDR));
|
||||||
if (p)
|
if (p)
|
||||||
HR(p, pgs);
|
HR(p, pgs);
|
||||||
#endif
|
#endif
|
||||||
#ifdef AT_BASE
|
#ifdef AT_BASE
|
||||||
p = (char *) getauxval(AT_BASE);
|
p = (char *) ((intptr_t) getauxval(AT_BASE));
|
||||||
if (p)
|
if (p)
|
||||||
HD(p);
|
HD(p);
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user