From 3d8f5e0bf5647bd2a2300f4dae4bd6b76ca15cb8 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 17 Mar 2016 10:08:10 +0000 Subject: [PATCH] [Minor] Fix description of rspamd_lua_parse_table_arguments --- src/lua/lua_common.h | 4 ++-- src/lua/lua_map.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lua/lua_common.h b/src/lua/lua_common.h index 54ad9d706..a7348c210 100644 --- a/src/lua/lua_common.h +++ b/src/lua/lua_common.h @@ -302,7 +302,7 @@ struct rspamd_config * lua_check_config (lua_State * L, gint pos); /** * Extract an arguments from lua table according to format string. Supported arguments are: - * key=[*]S|I|N|B|V|U{a-z};[key=...] + * [*]key=S|I|N|B|V|U{a-z};[key=...] * - S - const char * * - I - gint64_t * - N - double @@ -311,7 +311,7 @@ struct rspamd_config * lua_check_config (lua_State * L, gint pos); * - U{classname} - userdata of the following class (stored in gpointer) * - F - function * - * If any of format string is prefixed with `*` then it is treated as required argument + * If any of keys is prefixed with `*` then it is treated as required argument * @param L lua state * @param pos at which pos start extraction * @param err error pointer diff --git a/src/lua/lua_map.c b/src/lua/lua_map.c index 4d4dc2285..ed69db5fc 100644 --- a/src/lua/lua_map.c +++ b/src/lua/lua_map.c @@ -353,7 +353,7 @@ lua_config_add_map (lua_State *L) if (cfg) { if (lua_type (L, 2) == LUA_TTABLE) { if (!rspamd_lua_parse_table_arguments (L, 2, &err, - "type=*S;description=S;callback=F;url=*S", + "*type=S;description=S;callback=F;*url=S", &type, &description, &cbidx, &map_line)) { ret = luaL_error (L, "invalid table arguments: %s", err->message); g_error_free (err); -- 2.39.5