From a7583a5416832e72f1cd90bed503a3a9d9fd9cf5 Mon Sep 17 00:00:00 2001 From: Junghoon Park Date: Wed, 6 Sep 2017 13:44:21 +0900 Subject: [PATCH] Change the return type - The return type for init callback is changed from 'int' to 'void' Change-Id: I0d73986e322caa9c1f6a0e9cc2ef1dad31b52231 Signed-off-by: Junghoon Park --- include/appcore_base.h | 2 +- src/efl_base/appcore_efl_base.c | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/include/appcore_base.h b/include/appcore_base.h index a3a53ea..106b9c0 100644 --- a/include/appcore_base.h +++ b/include/appcore_base.h @@ -60,7 +60,7 @@ typedef struct _appcore_base_ops { int (*control) (bundle *b, void *data); int (*receive)(aul_type type, bundle *b, void *data); int (*set_i18n)(void *data); - int (*init)(int argc, char **argv, void *data); + void (*init)(int argc, char **argv, void *data); void (*finish)(void); void (*run)(void *data); void (*exit)(void *data); diff --git a/src/efl_base/appcore_efl_base.c b/src/efl_base/appcore_efl_base.c index 9f53902..a133d1c 100644 --- a/src/efl_base/appcore_efl_base.c +++ b/src/efl_base/appcore_efl_base.c @@ -51,7 +51,7 @@ static void __vc_vtauto_changed_cb(keynode_t *key, void *data) } } -static int __efl_app_init(int argc, char **argv, void *data) +static void __efl_app_init(int argc, char **argv, void *data) { int hint; const char *hwacc; @@ -86,8 +86,6 @@ static int __efl_app_init(int argc, char **argv, void *data) } vc_elm_set_auto_register_mode(2, 0); } - - return 0; } static void __efl_app_finish(void) -- 2.7.4