Fixed Tizen coding rule violations 89/207489/1
authorsaerome kim <saerome.kim@samsung.com>
Mon, 3 Jun 2019 11:30:24 +0000 (20:30 +0900)
committersaerome kim <saerome.kim@samsung.com>
Wed, 5 Jun 2019 08:41:17 +0000 (17:41 +0900)
Change-Id: I86eeae7d65d58398e1d4be3c10e48180c8a1decd
Signed-off-by: saerome kim <saerome.kim@samsung.com>
include/ua-api.h
ua-api/src/ua-api.c
ua-api/src/ua-event-handler.c
ua-daemon/include/ua-manager-common.h
ua-daemon/src/pm/ua-cloud-plugin-handler.c
ua-daemon/src/ua-manager-core.c
ua-daemon/src/ua-manager-event-sender.c

index c8453fa..ad4fb43 100644 (file)
@@ -177,7 +177,7 @@ typedef struct {
 } uam_detection_params_t;
 
 typedef struct {
-       charsender;
+       char *sender;
        unsigned short uid;
        char app_id[UAM_APP_ID_MAX_STRING_LEN];
 } uam_app_info_t;
@@ -195,33 +195,33 @@ int _uam_deinit(void);
 
 int _uam_get_available_sensors(unsigned int *bitmask);
 
-int _uam_get_default_user(uam_user_info_t* uam_user);
+int _uam_get_default_user(uam_user_info_t * uam_user);
 
-int _uam_add_user(uam_user_info_t* user);
+int _uam_add_user(uam_user_info_t * user);
 
-int _uam_remove_user(characcount);
+int _uam_remove_user(char *account);
 
-int _uam_request_get_user_by_account(char* account, uam_user_info_t* user);
+int _uam_request_get_user_by_account(char *account, uam_user_info_t * user);
 
-int _uam_request_get_user_by_deviceid(char* device_id, uam_user_info_t* user);
+int _uam_request_get_user_by_deviceid(char *device_id, uam_user_info_t * user);
 
-int _uam_request_get_user_by_mac(char* mac, uam_user_info_t* user);
+int _uam_request_get_user_by_mac(char *mac, uam_user_info_t * user);
 
-int _uam_request_add_device(char* account, uam_device_info_t* device);
+int _uam_request_add_device(char *account, uam_device_info_t *device);
 
-int _uam_request_remove_device(char* account, uam_device_info_t* device);
+int _uam_request_remove_device(char *account, uam_device_info_t *device);
 
-int _uam_request_remove_device_by_deviceid(const chardevice_id, uam_tech_type_e tech_type);
+int _uam_request_remove_device_by_deviceid(const char *device_id, uam_tech_type_e tech_type);
 
-int _uam_request_remove_device_by_mac(const charmac);
+int _uam_request_remove_device_by_mac(const char *mac);
 
-int _uam_request_get_device_by_deviceid(const char* device_id, uam_tech_type_e tech_type, uam_device_info_t* device);
+int _uam_request_get_device_by_deviceid(const char *device_id, uam_tech_type_e tech_type, uam_device_info_t *device);
 
-int _uam_request_get_device_by_mac(const char* mac, uam_device_info_t* device);
+int _uam_request_get_device_by_mac(const char *mac, uam_device_info_t *device);
 
 int _uam_request_get_devices(GPtrArray **devices_list);
 
-int _uam_request_get_user_devices(characcount, GPtrArray **devices_list);
+int _uam_request_get_user_devices(char *account, GPtrArray **devices_list);
 
 int _uam_request_set_detection_threshold(unsigned int sensor_type, int presence_threshold, int absence_threshold);
 
index 6b97199..900b142 100644 (file)
@@ -144,7 +144,7 @@ UAM_EXPORT_API int _uam_is_device_registered(uam_device_info_t *dev_info, gboole
        return ret;
 }
 
-UAM_EXPORT_API int _uam_get_default_user(uam_user_info_tuser)
+UAM_EXPORT_API int _uam_get_default_user(uam_user_info_t *user)
 {
        FUNC_ENTRY;
        int ret;
@@ -159,7 +159,7 @@ UAM_EXPORT_API int _uam_get_default_user(uam_user_info_t* user)
 
        if (UAM_ERROR_NONE == ret) {
                if (out_param->len > 0) {
-                       uam_user_info_tinfo;
+                       uam_user_info_t *info;
 
                        info = &g_array_index(out_param, uam_user_info_t, 0);
                        memcpy(user, info, sizeof(uam_user_info_t));
@@ -174,7 +174,7 @@ UAM_EXPORT_API int _uam_get_default_user(uam_user_info_t* user)
        return ret;
 }
 
-UAM_EXPORT_API int _uam_add_user(uam_user_info_tuser)
+UAM_EXPORT_API int _uam_add_user(uam_user_info_t *user)
 {
        FUNC_ENTRY;
        int ret;
@@ -202,7 +202,7 @@ UAM_EXPORT_API int _uam_add_user(uam_user_info_t* user)
        return ret;
 }
 
-UAM_EXPORT_API int _uam_remove_user(characcount)
+UAM_EXPORT_API int _uam_remove_user(char *account)
 {
        FUNC_ENTRY;
        int ret;
@@ -224,7 +224,8 @@ UAM_EXPORT_API int _uam_remove_user(char* account)
        return ret;
 }
 
-UAM_EXPORT_API int _uam_request_get_user_by_account(char* account, uam_user_info_t* user)
+UAM_EXPORT_API int _uam_request_get_user_by_account(char *account,
+       uam_user_info_t *user)
 {
        FUNC_ENTRY;
        int ret;
@@ -243,7 +244,7 @@ UAM_EXPORT_API int _uam_request_get_user_by_account(char* account, uam_user_info
 
        if (UAM_ERROR_NONE == ret) {
                if (out_param->len > 0) {
-                       uam_user_info_tinfo;
+                       uam_user_info_t *info;
 
                        info = &g_array_index(out_param, uam_user_info_t, 0);
                        memcpy(user, info, sizeof(uam_user_info_t));
@@ -258,7 +259,8 @@ UAM_EXPORT_API int _uam_request_get_user_by_account(char* account, uam_user_info
        return ret;
 }
 
-UAM_EXPORT_API int _uam_request_get_user_by_deviceid(char* device_id, uam_user_info_t* user)
+UAM_EXPORT_API int _uam_request_get_user_by_deviceid(char *device_id,
+       uam_user_info_t *user)
 {
        FUNC_ENTRY;
        int ret;
@@ -277,7 +279,7 @@ UAM_EXPORT_API int _uam_request_get_user_by_deviceid(char* device_id, uam_user_i
 
        if (UAM_ERROR_NONE == ret) {
                if (out_param->len > 0) {
-                       uam_user_info_t* info;
+                       uam_user_info_t * info;
 
                        info = &g_array_index(out_param, uam_user_info_t, 0);
                        memcpy(user, info, sizeof(uam_user_info_t));
@@ -292,7 +294,8 @@ UAM_EXPORT_API int _uam_request_get_user_by_deviceid(char* device_id, uam_user_i
        return ret;
 }
 
-UAM_EXPORT_API int _uam_request_get_user_by_mac(char* mac, uam_user_info_t* user)
+UAM_EXPORT_API int _uam_request_get_user_by_mac(char *mac,
+       uam_user_info_t *user)
 {
        FUNC_ENTRY;
        int ret;
@@ -311,7 +314,7 @@ UAM_EXPORT_API int _uam_request_get_user_by_mac(char* mac, uam_user_info_t* user
 
        if (UAM_ERROR_NONE == ret) {
                if (out_param->len > 0) {
-                       uam_user_info_t* info;
+                       uam_user_info_t * info;
 
                        info = &g_array_index(out_param, uam_user_info_t, 0);
                        memcpy(user, info, sizeof(uam_user_info_t));
@@ -326,7 +329,8 @@ UAM_EXPORT_API int _uam_request_get_user_by_mac(char* mac, uam_user_info_t* user
        return ret;
 }
 
-UAM_EXPORT_API int _uam_request_add_device(char* account, uam_device_info_t* device)
+UAM_EXPORT_API int _uam_request_add_device(char *account,
+       uam_device_info_t *device)
 {
        FUNC_ENTRY;
        int ret;
@@ -350,7 +354,8 @@ UAM_EXPORT_API int _uam_request_add_device(char* account, uam_device_info_t* dev
        return ret;
 }
 
-UAM_EXPORT_API int _uam_request_remove_device(char* account, uam_device_info_t* device)
+UAM_EXPORT_API int _uam_request_remove_device(char *account,
+       uam_device_info_t *device)
 {
        FUNC_ENTRY;
        int ret;
@@ -374,7 +379,8 @@ UAM_EXPORT_API int _uam_request_remove_device(char* account, uam_device_info_t*
        return ret;
 }
 
-UAM_EXPORT_API int _uam_request_remove_device_by_deviceid(const char* device_id, uam_tech_type_e tech_type)
+UAM_EXPORT_API int _uam_request_remove_device_by_deviceid(
+       const char *device_id, uam_tech_type_e tech_type)
 {
        FUNC_ENTRY;
        int ret;
@@ -397,7 +403,7 @@ UAM_EXPORT_API int _uam_request_remove_device_by_deviceid(const char* device_id,
        return ret;
 }
 
-UAM_EXPORT_API int _uam_request_remove_device_by_mac(const charmac)
+UAM_EXPORT_API int _uam_request_remove_device_by_mac(const char *mac)
 {
        FUNC_ENTRY;
        int ret;
@@ -419,7 +425,8 @@ UAM_EXPORT_API int _uam_request_remove_device_by_mac(const char* mac)
        return ret;
 }
 
-UAM_EXPORT_API int _uam_request_get_device_by_deviceid(const char* device_id, uam_tech_type_e tech_type, uam_device_info_t* device)
+UAM_EXPORT_API int _uam_request_get_device_by_deviceid(const char *device_id,
+               uam_tech_type_e tech_type, uam_device_info_t *device)
 {
        FUNC_ENTRY;
        int ret;
@@ -454,7 +461,8 @@ UAM_EXPORT_API int _uam_request_get_device_by_deviceid(const char* device_id, ua
        return ret;
 }
 
-UAM_EXPORT_API int _uam_request_get_device_by_mac(const char* mac, uam_device_info_t* device)
+UAM_EXPORT_API int _uam_request_get_device_by_mac(const char *mac,
+       uam_device_info_t *device)
 {
        FUNC_ENTRY;
        int ret;
@@ -525,7 +533,7 @@ UAM_EXPORT_API int _uam_request_get_devices(GPtrArray **devices_list)
        return ret;
 }
 
-UAM_EXPORT_API int _uam_request_get_user_devices(characcount, GPtrArray **devices_list)
+UAM_EXPORT_API int _uam_request_get_user_devices(char *account, GPtrArray **devices_list)
 {
        FUNC_ENTRY;
        int ret;
index 2e84f3e..42fae20 100644 (file)
@@ -65,16 +65,13 @@ static void __uam_event_handler(GDBusConnection *connection,
 
        ret_if(NULL == event_info);
 
-       if (0 != strncasecmp(object_path,
-                               UAM_EVENT_PATH, strlen(UAM_EVENT_PATH)))
+       if (0 != strcasecmp(object_path, UAM_EVENT_PATH))
                return;
 
-       if (0 != strncasecmp(interface_name,
-                               UAM_EVENT_INTERFACE, strlen(UAM_EVENT_INTERFACE)))
+       if (0 != strcasecmp(interface_name, UAM_EVENT_INTERFACE))
                return;
 
-       if (0 == strncasecmp(signal_name, UAM_SIGNAL_USER_PRESENCE_DETECTED,
-                               strlen(UAM_SIGNAL_USER_PRESENCE_DETECTED))) {
+       if (0 == strcasecmp(signal_name, UAM_SIGNAL_USER_PRESENCE_DETECTED)) {
                uam_detection_event_data_t event_data;
                unsigned int sensor_bitmask;
                char *account = NULL;
@@ -89,8 +86,7 @@ static void __uam_event_handler(GDBusConnection *connection,
 
                __uam_send_event(event, result, &event_data,
                                event_info->cb, event_info->user_data);
-       } else if (0 == strncasecmp(signal_name, UAM_SIGNAL_USER_ABSENCE_DETECTED,
-                               strlen(UAM_SIGNAL_USER_ABSENCE_DETECTED))) {
+       } else if (0 == strcasecmp(signal_name, UAM_SIGNAL_USER_ABSENCE_DETECTED)) {
                uam_detection_event_data_t event_data;
                unsigned int sensor_bitmask;
                char *account = NULL;
@@ -105,8 +101,7 @@ static void __uam_event_handler(GDBusConnection *connection,
 
                __uam_send_event(event, result, &event_data,
                                event_info->cb, event_info->user_data);
-       } else if (0 == strncasecmp(signal_name, UAM_SIGNAL_PRESENCE_DETECTED,
-                               strlen(UAM_SIGNAL_PRESENCE_DETECTED))) {
+       } else if (0 == strcasecmp(signal_name, UAM_SIGNAL_PRESENCE_DETECTED)) {
                unsigned int sensor_bitmask;
 
                g_variant_get(parameters, "(u)", &sensor_bitmask);
@@ -115,8 +110,7 @@ static void __uam_event_handler(GDBusConnection *connection,
 
                __uam_send_event(event, result, &sensor_bitmask,
                                event_info->cb, event_info->user_data);
-       } else if (0 == strncasecmp(signal_name, UAM_SIGNAL_ABSENCE_DETECTED,
-                               strlen(UAM_SIGNAL_ABSENCE_DETECTED))) {
+       } else if (0 == strcasecmp(signal_name, UAM_SIGNAL_ABSENCE_DETECTED)) {
                unsigned int sensor_bitmask;
                g_variant_get(parameters, "(u)", &sensor_bitmask);
 
@@ -124,8 +118,7 @@ static void __uam_event_handler(GDBusConnection *connection,
 
                __uam_send_event(event, result, &sensor_bitmask,
                                event_info->cb, event_info->user_data);
-       } else if (0 == strncasecmp(signal_name, UAM_SIGNAL_SENSOR_STATE_READY,
-                               strlen(UAM_SIGNAL_SENSOR_STATE_READY))) {
+       } else if (0 == strcasecmp(signal_name, UAM_SIGNAL_SENSOR_STATE_READY)) {
                unsigned int sensor;
 
                g_variant_get(parameters, "(iu)", &result,
@@ -134,8 +127,7 @@ static void __uam_event_handler(GDBusConnection *connection,
                event = UAM_EVENT_SENSOR_STATE_READY;
                __uam_send_event(event, result, &sensor,
                                event_info->cb, event_info->user_data);
-       } else if (0 == strncasecmp(signal_name, UAM_SIGNAL_SENSOR_STATE_NOT_READY,
-                               strlen(UAM_SIGNAL_SENSOR_STATE_NOT_READY))) {
+       } else if (0 == strcasecmp(signal_name, UAM_SIGNAL_SENSOR_STATE_NOT_READY)) {
                unsigned int sensor;
 
                g_variant_get(parameters, "(iu)", &result,
@@ -144,8 +136,7 @@ static void __uam_event_handler(GDBusConnection *connection,
                event = UAM_EVENT_SENSOR_STATE_NOT_READY;
                __uam_send_event(event, result, &sensor,
                                event_info->cb, event_info->user_data);
-       } else if (0 == strncasecmp(signal_name, UAM_SIGNAL_USER_ADDED,
-                               strlen(UAM_SIGNAL_USER_ADDED))) {
+       } else if (0 == strcasecmp(signal_name, UAM_SIGNAL_USER_ADDED)) {
                uam_user_info_t user_info;
                char *account = NULL;
                char *name = NULL;
@@ -162,8 +153,7 @@ static void __uam_event_handler(GDBusConnection *connection,
                event = UAM_EVENT_USER_ADDED;
                __uam_send_event(event, result, &user_info,
                                event_info->cb, event_info->user_data);
-       } else if (0 == strncasecmp(signal_name, UAM_SIGNAL_USER_REMOVED,
-                               strlen(UAM_SIGNAL_USER_REMOVED))) {
+       } else if (0 == strcasecmp(signal_name, UAM_SIGNAL_USER_REMOVED)) {
                uam_user_info_t user_info;
                char *account = NULL;
                char *name = NULL;
@@ -180,8 +170,7 @@ static void __uam_event_handler(GDBusConnection *connection,
                event = UAM_EVENT_USER_REMOVED;
                __uam_send_event(event, result, &user_info,
                                event_info->cb, event_info->user_data);
-       } else if (0 == strncasecmp(signal_name, UAM_SIGNAL_DEVICE_ADDED,
-                               strlen(UAM_SIGNAL_DEVICE_ADDED))) {
+       } else if (0 == strcasecmp(signal_name, UAM_SIGNAL_DEVICE_ADDED)) {
                uam_device_info_t dev_info;
                int os, type;
                char *mac = NULL;
@@ -203,8 +192,7 @@ static void __uam_event_handler(GDBusConnection *connection,
                event = UAM_EVENT_DEVICE_ADDED;
                __uam_send_event(event, result, &dev_info,
                                event_info->cb, event_info->user_data);
-       } else if (0 == strncasecmp(signal_name, UAM_SIGNAL_DEVICE_REMOVED,
-                               strlen(UAM_SIGNAL_DEVICE_REMOVED))) {
+       } else if (0 == strcasecmp(signal_name, UAM_SIGNAL_DEVICE_REMOVED)) {
                uam_device_info_t dev_info;
                int os, type;
                char *mac = NULL;
@@ -226,16 +214,13 @@ static void __uam_event_handler(GDBusConnection *connection,
                event = UAM_EVENT_DEVICE_REMOVED;
                __uam_send_event(event, result, &dev_info,
                                event_info->cb, event_info->user_data);
-       } else if (0 == strncasecmp(signal_name, UAM_SIGNAL_DETECTION_STARTED,
-                               strlen(UAM_SIGNAL_DETECTION_STARTED))) {
+       } else if (0 == strcasecmp(signal_name, UAM_SIGNAL_DETECTION_STARTED)) {
                __uam_send_event(UAM_EVENT_DETECTION_STARTED, result, NULL,
                                event_info->cb, event_info->user_data);
-       } else if (0 == strncasecmp(signal_name, UAM_SIGNAL_DETECTION_STOPPED,
-                               strlen(UAM_SIGNAL_DETECTION_STOPPED))) {
+       } else if (0 == strcasecmp(signal_name, UAM_SIGNAL_DETECTION_STOPPED)) {
                __uam_send_event(UAM_EVENT_DETECTION_STOPPED, result, NULL,
                                event_info->cb, event_info->user_data);
-       } else if (0 == strncasecmp(signal_name, UAM_SIGNAL_DEVICE_FOUND,
-                               strlen(UAM_SIGNAL_DEVICE_FOUND))) {
+       } else if (0 == strcasecmp(signal_name, UAM_SIGNAL_DEVICE_FOUND)) {
                uam_device_info_t dev_info;
                int os, type;
                char *mac = NULL;
@@ -257,8 +242,7 @@ static void __uam_event_handler(GDBusConnection *connection,
                event = UAM_EVENT_DEVICE_FOUND;
                __uam_send_event(event, result, &dev_info,
                                event_info->cb, event_info->user_data);
-       } else if (0 == strncasecmp(signal_name, UAM_SIGNAL_SCAN_COMPLETED,
-                               strlen(UAM_SIGNAL_SCAN_COMPLETED))) {
+       } else if (0 == strcasecmp(signal_name, UAM_SIGNAL_SCAN_COMPLETED)) {
 
                event = UAM_EVENT_SCAN_COMPLETED;
                __uam_send_event(event, result, NULL,
index c18e543..21941b3 100644 (file)
@@ -100,7 +100,7 @@ void _uam_manager_method_return(
                GArray *out_param, int result);
 
 int _uam_manager_send_event(
-               const chardest, int event, GVariant *param);
+               const char *dest, int event, GVariant *param);
 
 GDBusConnection *_uam_manager_get_gdbus_conn(void);
 
@@ -123,9 +123,9 @@ void _uam_remove_timer(guint id);
 
 const char* _uam_get_sensor_str(unsigned int ids);
 
-int _uam_register_app_info(charsender, uam_app_info_t app_info);
+int _uam_register_app_info(char *sender, uam_app_info_t app_info);
 
-int _uam_deregister_app_info(charsender, uam_app_info_t app_info);
+int _uam_deregister_app_info(char *sender, uam_app_info_t app_info);
 
 #ifdef __cplusplus
 }
index 8fd4b06..b61a0f9 100644 (file)
@@ -123,7 +123,7 @@ static int add_device(const char *account, uap_device_info_t *dev_info)
        return UAP_STATUS_SUCCESS;
 }
 
-static int remove_device(const chardevice_id, int type)
+static int remove_device(const char *device_id, int type)
 {
        FUNC_ENTRY;
 
index 73a0c1a..be48631 100644 (file)
@@ -306,8 +306,7 @@ static uam_db_tech_info_t *__get_tech_info_by_mac(const char *mac)
                                                UAM_ADDR_TYPE_BT == addr->addr_type ||
                                                UAM_ADDR_TYPE_P2P == addr->addr_type ||
                                                UAM_ADDR_TYPE_WIFI == addr->addr_type)
-                                       if (!strncasecmp(addr->address, mac,
-                                                               UAM_MAC_ADDRESS_STRING_LEN)) {
+                                       if (!strcasecmp(addr->address, mac)) {
                                                UAM_DBG("Device found Mac: %s, type: %d",
                                                                addr->address, addr->addr_type);
                                                return tech;
@@ -735,8 +734,7 @@ int _uam_core_is_device_added(uam_device_info_t *dev, gboolean *is_added)
                                        UAM_ADDR_TYPE_BT == addr->addr_type ||
                                        UAM_ADDR_TYPE_P2P == addr->addr_type ||
                                        UAM_ADDR_TYPE_WIFI == addr->addr_type)
-                               if (!strncasecmp(addr->address, dev->mac,
-                                                       UAM_MAC_ADDRESS_STRING_LEN)) {
+                               if (!strcasecmp(addr->address, dev->mac)) {
                                        *is_added = TRUE;
                                        break;
                                }
@@ -1607,8 +1605,7 @@ void _uam_core_handle_device_added(int status,
                }
 
                if (dev->type != dev_info->type ||
-                               strncasecmp(dev->device_id, dev_info->device_id,
-                                       UAM_DEVICE_ID_MAX_STRING_LEN)) {
+                               strcasecmp(dev->device_id, dev_info->device_id)) {
                        UAM_WARN("[%d != %d] || [%s != %s]", dev->type, dev_info->type,
                                        dev->device_id, dev_info->device_id);
                        _uam_manager_remove_req_ctxt_from_list(info);
@@ -1749,8 +1746,7 @@ void _uam_core_handle_presence_detected(unsigned int sensor,
                        if (!addr || (UAM_ADDR_TYPE_IPv4 != addr->addr_type))
                                continue;
 
-                       if (!strncasecmp(addr->address, dev_info->ipv4_addr,
-                                               UAM_MAC_ADDRESS_STRING_LEN))
+                       if (!strcasecmp(addr->address, dev_info->ipv4_addr))
                                is_updated = FALSE;
                        else
                                UAM_DBG("Old IPv4: %s, New IPv4: %s",
@@ -2054,7 +2050,6 @@ int _uam_core_start_search_active_devices(char *sender, unsigned int sensors, in
        }
 
        ret = _uam_pm_start_search_active_devices(&sensors, detection_period);
-
        if (UAM_ERROR_NONE != ret) {
                UAM_ERR("Failed with error: %s (0x%4.4X)",
                                _uam_manager_error_to_str(ret), ret);
@@ -2108,7 +2103,7 @@ void _uam_core_handle_active_device(uam_active_scan_event_e event, unsigned int
        GVariant *param = NULL;
        GSList *l;
        int done = 0;
-       charname = NULL;
+       char *name = NULL;
 
        for (l = scanners; NULL != l; l = g_slist_next(l)) {
                uam_monitor_info_t *scanner = (uam_monitor_info_t *)l->data;
@@ -2117,7 +2112,6 @@ void _uam_core_handle_active_device(uam_active_scan_event_e event, unsigned int
                        continue;
 
                if (scanner->sensors & sensor) {
-
                        name = g_strdup(scanner->name);
                        if (event == UAM_ACTIVE_SCAN_COMPLETED) {
                                scanner->sensors &= ~(sensor);
index bc8e629..5f40dc5 100644 (file)
@@ -58,7 +58,7 @@ static void __uam_app_launcher(uam_app_info_t *app_info)
        FUNC_EXIT;
 }
 
-static void __uam_resume_app(const chardest)
+static void __uam_resume_app(const char *dest)
 {
        FUNC_ENTRY;
        GSList *l;
@@ -93,7 +93,7 @@ static void __uam_resume_app(const char* dest)
 }
 
 int _uam_manager_send_event(
-               const chardest, int event, GVariant *param)
+               const char *dest, int event, GVariant *param)
 {
        FUNC_ENTRY;
        char *signal;
@@ -196,7 +196,7 @@ static uam_app_info_t *__uam_find_app(const char *name)
        return NULL;
 }
 
-int _uam_register_app_info(charsender, uam_app_info_t app_info)
+int _uam_register_app_info(char *sender, uam_app_info_t app_info)
 {
        FUNC_ENTRY;
 
@@ -224,7 +224,7 @@ int _uam_register_app_info(char* sender, uam_app_info_t app_info)
        return ret;
 }
 
-int _uam_deregister_app_info(charsender, uam_app_info_t app_info)
+int _uam_deregister_app_info(char *sender, uam_app_info_t app_info)
 {
        FUNC_ENTRY;