diff options
author | Kim Alvefur <zash@zash.se> | 2017-12-03 14:13:56 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2017-12-03 14:13:56 +0100 |
commit | 8d02dff4fde50de5c542ad007c1f9ba8b3879c3c (patch) | |
tree | a7c77e3138bd1ceb498a0031639cddf0156f9374 /util-src | |
parent | fb2b11380324cfd5fd9b2eedd2aaac26cce2d20d (diff) | |
download | prosody-8d02dff4fde50de5c542ad007c1f9ba8b3879c3c.tar.gz prosody-8d02dff4fde50de5c542ad007c1f9ba8b3879c3c.zip |
util.crand: Silence signedness warning
Diffstat (limited to 'util-src')
-rw-r--r-- | util-src/crand.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util-src/crand.c b/util-src/crand.c index cff82dab..ed685342 100644 --- a/util-src/crand.c +++ b/util-src/crand.c @@ -91,7 +91,7 @@ int Lrandom(lua_State *L) { return lua_error(L); } - if(RAND_bytes(buf, len) != 1) { + if(RAND_bytes((unsigned char *)buf, len) != 1) { /* TODO ERR_get_error() */ lua_pushstring(L, "RAND_bytes() failed"); return lua_error(L); |