From: Yunhee Seo Date: Thu, 4 Jul 2024 02:00:40 +0000 (+0900) Subject: input: Change variables type for proper type casting X-Git-Tag: accepted/tizen/unified/20240704.173833^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fheads%2Faccepted%2Ftizen_unified_dev;p=platform%2Fcore%2Fsystem%2Fplugin%2Fdeviced-mobile.git input: Change variables type for proper type casting When syscommon_resman_get_resource_attr_uint64_with_2_user_data() treats getter data, that type is handled with u_int64_t type. However, getter parameter type was int/unsigned int type. The types should be changed to appropriate ones because they can cause problems when handled as 4 bytes size. They are not compatible with the size of u_int64_t type. Change-Id: Ib603de22cf5f825a4b28f7fbbdac83674d3ac9e0 Signed-off-by: Yunhee Seo --- diff --git a/src/input/input.c b/src/input/input.c index 49dc1eb..74b06e3 100644 --- a/src/input/input.c +++ b/src/input/input.c @@ -105,7 +105,7 @@ static inline void restore_custom_brightness(void) static void longkey_pressed(void) { - unsigned int caps; + u_int64_t caps; enum syscommon_deviced_display_actor_id actor_power_key = SYSCOMMON_DEVICED_DISPLAY_ACTOR_POWER_KEY; enum syscommon_deviced_display_capability lcdon_cap = SYSCOMMON_DEVICED_DISPLAY_CAPA_LCDON; enum syscommon_deviced_display_capability lcdoff_cap = SYSCOMMON_DEVICED_DISPLAY_CAPA_LCDOFF; @@ -348,7 +348,7 @@ static void process_combination_key(struct input_event *pinput) static int process_menu_key(struct input_event *pinput) { - int caps; + u_int64_t caps; enum syscommon_deviced_display_actor_id actor_menu_key = SYSCOMMON_DEVICED_DISPLAY_ACTOR_MENU_KEY; enum syscommon_deviced_display_capability lcdon_cap = SYSCOMMON_DEVICED_DISPLAY_CAPA_LCDON; @@ -500,8 +500,8 @@ static int process_power_key(struct input_event *pinput) int dpms_state; int powerkey_doublepress; double longpress_interval; - unsigned int lcdoff_caps; - unsigned int lcdon_caps; + u_int64_t lcdoff_caps; + u_int64_t lcdon_caps; enum syscommon_deviced_display_actor_id actor_power_key = SYSCOMMON_DEVICED_DISPLAY_ACTOR_POWER_KEY; enum syscommon_deviced_display_capability lcdon_cap = SYSCOMMON_DEVICED_DISPLAY_CAPA_LCDON; enum syscommon_deviced_display_capability lcdoff_cap = SYSCOMMON_DEVICED_DISPLAY_CAPA_LCDOFF;