aboutsummaryrefslogtreecommitdiffstats
path: root/util-src/hashes.c
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2008-11-27 21:47:13 +0500
committerWaqas Hussain <waqas20@gmail.com>2008-11-27 21:47:13 +0500
commit2fdb13c54d3257984b8e1e6885d5f7c6d5580f18 (patch)
treea86ae2f9327530d0418115d88f11136df5149e8a /util-src/hashes.c
parenta153b3c26704686bf9a3f2255d9aeb3c5f6aa2b1 (diff)
downloadprosody-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.c2
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); \