missing full initialization for struct afb_verb_v3 68/21068/1
authorPhong Tran <tranmanphong@gmail.com>
Wed, 17 Apr 2019 15:56:37 +0000 (22:56 +0700)
committerPhong Tran <tranmanphong@gmail.com>
Wed, 17 Apr 2019 16:14:45 +0000 (23:14 +0700)
This is for fixing
warning: missing field 'callback' initializer
[-Wmissing-field-initializers]

Change-Id: I6807ed25bff96c96f347ec1e87f1b12cf0759498
Signed-off-by: Phong Tran <tranmanphong@gmail.com>
bindings/samples/AuthLogin.c
bindings/samples/DemoContext.c

index 851faec..df001fd 100644 (file)
@@ -112,7 +112,7 @@ static const struct afb_verb_v3 verbs[]= {
   {.verb="refresh" , .session=AFB_SESSION_LOA_1 | AFB_SESSION_RENEW, .callback=clientContextRefresh,.info="Refresh Client Authentication Token"},
   {.verb="check"   , .session=AFB_SESSION_LOA_1                    , .callback=clientContextCheck  ,.info="Check Client Authentication Token"},
   {.verb="logout"  , .session=AFB_SESSION_LOA_1 | AFB_SESSION_CLOSE, .callback=clientContextLogout ,.info="Logout Client and Free resources"},
-  {NULL}
+  {0, 0, 0, 0, 0, 0, 0}
 };
 
 const struct afb_binding_v3 afbBindingV3 =
index f1e9013..cb8e86f 100644 (file)
@@ -127,7 +127,7 @@ static const struct afb_verb_v3 verbs[]= {
   {.verb="check_loa_ge_1", .session=AFB_SESSION_LOA_1, .callback=clientCheckLOA ,.vcbdata=(void*)(intptr_t)1 ,.info="Check whether level of assurance is greater or equal to 1"},
   {.verb="check_loa_ge_2", .session=AFB_SESSION_LOA_2, .callback=clientCheckLOA ,.vcbdata=(void*)(intptr_t)2 ,.info="Check whether level of assurance is greater or equal to 2"},
   {.verb="check_loa_ge_3", .session=AFB_SESSION_LOA_3, .callback=clientCheckLOA ,.vcbdata=(void*)(intptr_t)3 ,.info="Check whether level of assurance is greater or equal to 3"},
-  {NULL}
+  {0, 0, 0, 0, 0, 0, 0}
 };
 
 const struct afb_binding_v3 afbBindingV3 =