diff options
author | Guillem Jover <guillem@hadrons.org> | 2021-02-20 22:22:54 +0100 |
---|---|---|
committer | Guillem Jover <guillem@hadrons.org> | 2021-02-28 05:30:37 +0100 |
commit | 72a82ee262795c9162e712885381a111fcf988bc (patch) | |
tree | 77899667e9e879e60d172d733f930dec6d09ab41 | |
parent | 3c305f2873580322823af53d9b9202b8ce658c32 (diff) |
getentropy: Fix function cast for getauxval()
Warned-by: gcc
-rw-r--r-- | src/getentropy_linux.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/getentropy_linux.c b/src/getentropy_linux.c index 25c986e..9cb3368 100644 --- a/src/getentropy_linux.c +++ b/src/getentropy_linux.c @@ -520,17 +520,17 @@ getentropy_fallback(void *buf, size_t len) #ifdef HAVE_GETAUXVAL #ifdef AT_RANDOM /* 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) HR(p, 16); #endif #ifdef AT_SYSINFO_EHDR - p = (char *) getauxval(AT_SYSINFO_EHDR); + p = (char *) ((intptr_t) getauxval(AT_SYSINFO_EHDR)); if (p) HR(p, pgs); #endif #ifdef AT_BASE - p = (char *) getauxval(AT_BASE); + p = (char *) ((intptr_t) getauxval(AT_BASE)); if (p) HD(p); #endif |