summaryrefslogtreecommitdiffstats
path: root/ctl-lib/ctl-lua.c
diff options
context:
space:
mode:
authorSebastien Douheret <sebastien.douheret@iot.bzh>2018-06-05 22:40:09 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2018-12-13 15:02:55 +0100
commitf207ab581021fb4f4b9996b9feb4b67ea51933ed (patch)
treebf5c7d232bb4ea4f2517b817ac5c3ecd62638867 /ctl-lib/ctl-lua.c
parent91318128419fe5db345f6e00bb8e68a413f967c7 (diff)
Fixed spelling of AFB_ReqSuccess
Also change event message from notice to debug level. Change-Id: I8dc891343ee7f744ea0e3c07455806eaf34c1d7e Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
Diffstat (limited to 'ctl-lib/ctl-lua.c')
-rw-r--r--ctl-lib/ctl-lua.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ctl-lib/ctl-lua.c b/ctl-lib/ctl-lua.c
index fe82317..4342464 100644
--- a/ctl-lib/ctl-lua.c
+++ b/ctl-lib/ctl-lua.c
@@ -31,7 +31,7 @@
#include "ctl-config.h"
-#define LUA_FIST_ARG 2 // when using luaL_newlib calllback receive libtable as 1st arg
+#define LUA_FIST_ARG 2 // when using luaL_newlib callback receive libtable as 1st arg
#define LUA_MSG_MAX_LENGTH 2048
#define JSON_ERROR (json_object*)-1
@@ -393,7 +393,7 @@ static int LuaAfbSuccess(lua_State* luaState) {
json_object *responseJ = LuaPopArgs(source, luaState, LUA_FIST_ARG + 1);
if (responseJ == JSON_ERROR) return 1;
- AFB_ReqSucess(source->request, responseJ, NULL);
+ AFB_ReqSuccess(source->request, responseJ, NULL);
json_object_put(responseJ);
return 0;