Software /
code /
prosody
Comparison
util-src/crand.c @ 7439:4cccaa33b0a1
util.crand: Silence compiler warning
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 25 May 2016 16:54:43 +0200 |
parent | 7189:72839cafdf36 |
child | 7818:54669df178c2 |
comparison
equal
deleted
inserted
replaced
7435:8603b16e85c7 | 7439:4cccaa33b0a1 |
---|---|
104 return 2; | 104 return 2; |
105 } | 105 } |
106 | 106 |
107 #endif | 107 #endif |
108 | 108 |
109 lua_pushlstring(L, buf, ret); | 109 lua_pushlstring(L, (const char *)buf, ret); |
110 #ifndef BUFLEN | 110 #ifndef BUFLEN |
111 free(buf); | 111 free(buf); |
112 #endif | 112 #endif |
113 return 1; | 113 return 1; |
114 } | 114 } |