summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwalter harms <wharms@bfs.de>2017-09-07 18:52:13 +0200
committerAlan Coopersmith <alan.coopersmith@oracle.com>2019-03-03 10:44:32 -0800
commit1cc4ae8648590f04557a20c8d88d39cef7fe8119 (patch)
tree976f5912bc7aca746f304dacd539146755144806
parentccbcae7d3409789bf346ca35963264d064f54cba (diff)
iceauth.c: FIX warning: unused variable 'ret' in 'arc4random_buf'
commit ff5e59f32255913bb1cdf51441b98c9107ae165b left ret outside the #if causing a gcc warning: In function 'arc4random_buf': iceauth.c:89:13: warning: unused variable 'ret' [-Wunused-variable] fixed by moving #if 1 up Signed-off-by: Walter Harms <wharms@bfs.de> Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com> Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--src/iceauth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/iceauth.c b/src/iceauth.c
index ccbafe6..147efc7 100644
--- a/src/iceauth.c
+++ b/src/iceauth.c
@@ -85,9 +85,9 @@ arc4random_buf (
int len
)
{
+#if HAVE_GETENTROPY
int ret;
-#if HAVE_GETENTROPY
/* weak emulation of arc4random through the entropy libc */
ret = getentropy (auth, len);
if (ret == 0)