aboutsummaryrefslogtreecommitdiffstats
path: root/util-src/crand.c
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2016-05-25 16:54:43 +0200
committerKim Alvefur <zash@zash.se>2016-05-25 16:54:43 +0200
commit478e9b9327fe09be13db51d64c8a175a0902789f (patch)
tree43e80209a49bd22f72aa9292ed59cfb395858a27 /util-src/crand.c
parent59957bc13cbf9c18c8e7379559455d5d1802e7ec (diff)
downloadprosody-478e9b9327fe09be13db51d64c8a175a0902789f.tar.gz
prosody-478e9b9327fe09be13db51d64c8a175a0902789f.zip
util.crand: Silence compiler warning
Diffstat (limited to 'util-src/crand.c')
-rw-r--r--util-src/crand.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util-src/crand.c b/util-src/crand.c
index 735135fb..fbdec8f8 100644
--- a/util-src/crand.c
+++ b/util-src/crand.c
@@ -106,7 +106,7 @@ int Lrandom(lua_State *L) {
#endif
- lua_pushlstring(L, buf, ret);
+ lua_pushlstring(L, (const char *)buf, ret);
#ifndef BUFLEN
free(buf);
#endif