]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Minor] Deal with packed structure member properly
authorVsevolod Stakhov <vsevolod@rspamd.com>
Sat, 25 Jan 2025 13:35:25 +0000 (13:35 +0000)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Sat, 25 Jan 2025 13:35:25 +0000 (13:35 +0000)
src/lua/lua_common.h
src/lua/lua_shingles.cxx

index f5a4967ba22bece54503072b13454961ea9623ab..a294443943cc9c34d588b604585b83e07850ca9b 100644 (file)
@@ -460,7 +460,7 @@ struct rspamd_lua_url *lua_check_url(lua_State *L, int pos);
  * Creates a new shingle object from the existing shingle
  */
 struct rspamd_shingle;
-void lua_newshingle(lua_State *L, const struct rspamd_shingle *sh);
+void lua_newshingle(lua_State *L, const void *sh);
 
 enum rspamd_lua_parse_arguments_flags {
        RSPAMD_LUA_PARSE_ARGUMENTS_DEFAULT = 0,
index 8e14d8ba87ecc9c22f9fca54d69397c72a3d5ae2..4682ef74f538b2e0c130155da9b3348bf872cc85 100644 (file)
@@ -62,7 +62,7 @@ lua_check_shingle(lua_State *L, int pos)
        return static_cast<struct rspamd_shingle *>(ud);
 }
 
-void lua_newshingle(lua_State *L, const struct rspamd_shingle *sh)
+void lua_newshingle(lua_State *L, const void *sh)
 {
        auto *nsh = static_cast<struct rspamd_shingle *>(
                lua_newuserdata(L, sizeof(struct rspamd_shingle)));