From 8c886023c969de981dacf135dff30ff54144d2b8 Mon Sep 17 00:00:00 2001 From: Cloud Wu Date: Mon, 5 May 2014 19:18:09 +0800 Subject: [PATCH] avoid warning --- lualib-src/lua-mongo.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lualib-src/lua-mongo.c b/lualib-src/lua-mongo.c index 166e6683..a0d312fd 100644 --- a/lualib-src/lua-mongo.c +++ b/lualib-src/lua-mongo.c @@ -55,7 +55,7 @@ little_endian(uint32_t v) { typedef void * document; static inline uint32_t -get_length(const document buffer) { +get_length(document buffer) { union { uint32_t v; uint8_t b[4]; @@ -243,7 +243,7 @@ op_reply(lua_State *L) { lua_pushlightuserdata(L, (void *)doc); lua_rawseti(L, 2, i); - int32_t doc_len = get_length((const document)doc); + int32_t doc_len = get_length((document)doc); doc += doc_len; sz -= doc_len;