From 7120c0e282cd9e1ce9b976caa1a2c195cbe6e377 Mon Sep 17 00:00:00 2001 From: Inkyun Kil Date: Thu, 8 Aug 2019 09:11:00 +0900 Subject: [PATCH] Fix stack overflow gboolean is different from bool Change-Id: I352572d00b1ea68fa86f775b0b471ae6c23ad828 Signed-off-by: Inkyun Kil --- src/eventsystem.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/eventsystem.c b/src/eventsystem.c index 3f80264..b678c79 100644 --- a/src/eventsystem.c +++ b/src/eventsystem.c @@ -114,7 +114,7 @@ static eventmap_s *__create_eventmap(const char *interface_name, int event_type, eventsystem_cb callback, void *user_data); static void __destroy_eventmap(gpointer data); static int __eventsystem_launch_on_event_for_userevent(const char *event_name, - bundle *data, const bool trusted); + bundle *data, gboolean trusted); static int __event_compare_reg_id_cb(gconstpointer a, gconstpointer b) { @@ -974,7 +974,7 @@ int eventsystem_send_user_event(const char *event_name, bundle *data, bool is_tr goto out; } - if (__eventsystem_launch_on_event_for_userevent(evti->event_name, data, true) < 0) + if (__eventsystem_launch_on_event_for_userevent(evti->event_name, data, TRUE) < 0) _E("Failed to launch on event for userevent"); } else { if (__eventsystem_send_event(conn, evti, data) < 0) { @@ -983,7 +983,7 @@ int eventsystem_send_user_event(const char *event_name, bundle *data, bool is_tr goto out; } - if (__eventsystem_launch_on_event_for_userevent(evti->event_name, data, false) < 0) + if (__eventsystem_launch_on_event_for_userevent(evti->event_name, data, FALSE) < 0) _E("Failed to launch on event for userevent"); } } else { @@ -1583,7 +1583,7 @@ out_1: } static int __eventsystem_launch_on_event_for_userevent(const char *event_name, - bundle *data, const bool trusted) + bundle *data, gboolean trusted) { int ret = ES_R_EINVAL; GDBusConnection *conn = NULL; -- 2.7.4