From 1ec0a201bedf5299ba157322508d438b426cf8f6 Mon Sep 17 00:00:00 2001 From: Romain Forlot Date: Tue, 3 Jul 2018 15:32:05 +0200 Subject: Add an exit handler also in LUA. Needs to make it as a parameter tested at the end of afb request call "launch_all_test". Change-Id: I87b93aae67561e5aec0a138bfbdc0dabac3bdc21 Signed-off-by: Romain Forlot --- src/test-binding.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src') diff --git a/src/test-binding.c b/src/test-binding.c index aa9fde5..d465994 100644 --- a/src/test-binding.c +++ b/src/test-binding.c @@ -41,8 +41,6 @@ static void ctrlapi_ping(AFB_ReqT request) { count++; AFB_ReqNotice(request, "Controller:ping count=%d", count); AFB_ReqSuccess(request, json_object_new_int(count), NULL); - - return; } static void ctrlapi_exit(AFB_ReqT request) { @@ -50,8 +48,6 @@ static void ctrlapi_exit(AFB_ReqT request) { AFB_ReqNotice(request, "Exiting..."); AFB_ReqSuccess(request, NULL, NULL); exit(0); - - return; } static AFB_ApiVerbs CtrlApiVerbs[] = { -- cgit 1.2.3-korg