diff options
author | Waqas Hussain <waqas20@gmail.com> | 2008-11-27 21:47:13 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2008-11-27 21:47:13 +0500 |
commit | 2fdb13c54d3257984b8e1e6885d5f7c6d5580f18 (patch) | |
tree | a86ae2f9327530d0418115d88f11136df5149e8a /util-src/hashes.c | |
parent | a153b3c26704686bf9a3f2255d9aeb3c5f6aa2b1 (diff) | |
download | prosody-2fdb13c54d3257984b8e1e6885d5f7c6d5580f18.tar.gz prosody-2fdb13c54d3257984b8e1e6885d5f7c6d5580f18.zip |
Minor changes to C files (to prevent compiler warnings)
Diffstat (limited to 'util-src/hashes.c')
-rw-r--r-- | util-src/hashes.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util-src/hashes.c b/util-src/hashes.c index f57e6b55..41cf6f50 100644 --- a/util-src/hashes.c +++ b/util-src/hashes.c @@ -26,7 +26,7 @@ static int myFunc(lua_State *L) { \ int hex_out = lua_toboolean(L, 2); \
char hash[size]; \
char result[size*2]; \
- func(s, len, hash); \
+ func((const unsigned char*)s, len, (unsigned char*)hash); \
if (hex_out) { \
toHex(hash, size, result); \
lua_pushlstring(L, result, size*2); \
|