diff options
author | 2016-03-23 17:11:04 +0100 | |
---|---|---|
committer | 2016-03-23 17:11:04 +0100 | |
commit | 1ddea9dd3848c640c0c63ba87056f6a850a7323d (patch) | |
tree | e848f0386289f1a6cafce25462bd26cb27a0d704 /src | |
parent | 5ffc5b65e3f2388d518d0e75afb7788f7d5fa041 (diff) |
AFB_error: improves mangement
Change-Id: I88969338623aad0cb628f97f9e9962315ae9380c
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'src')
-rw-r--r-- | src/helper-api.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/helper-api.c b/src/helper-api.c index bf94c898..912093bb 100644 --- a/src/helper-api.c +++ b/src/helper-api.c @@ -38,12 +38,12 @@ typedef struct { json_object *json; } AFB_errorT; -static AFB_errorT AFBerr [AFB_SUCCESS+1]; +static AFB_errorT AFBerr [AFB_UNAUTH+1]; static json_object *jTypeStatic; PUBLIC int verbose; -static const char *ERROR_LABEL[] = {"false", "true", "fatal", "fail", "warning", "empty", "success"}; +static const char *ERROR_LABEL[] = {"false", "true", "fatal", "fail", "warning", "empty", "success", "done", "unauth"}; @@ -225,7 +225,7 @@ static void jsoninit() verbosesav = verbose; verbose = 0; // run initialisation in silent mode jTypeStatic = json_object_new_string ("AFB_message"); - for (idx = 0; idx <= AFB_SUCCESS; idx++) { + for (idx = 0; idx <= AFB_UNAUTH; idx++) { AFBerr[idx].level = idx; AFBerr[idx].label = ERROR_LABEL [idx]; AFBerr[idx].json = jsonNewMessage (idx, NULL); |