input: Change variables type for proper type casting 00/314000/1 accepted/tizen_unified_dev accepted/tizen/unified/20240704.173833 accepted/tizen/unified/dev/20240708.001547
authorYunhee Seo <yuni.seo@samsung.com>
Thu, 4 Jul 2024 02:00:40 +0000 (11:00 +0900)
committerYunhee Seo <yuni.seo@samsung.com>
Thu, 4 Jul 2024 02:03:42 +0000 (11:03 +0900)
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 <yuni.seo@samsung.com>
src/input/input.c

index 49dc1ebccadddc041d93f6dffd517ac02b995792..74b06e31bcf4071b871eb085c953a181ab29669b 100644 (file)
@@ -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;