Cannot cast surf pointer as int.
Change-Id: I4c02617a838e126a0800a65290d63c357a618d7f
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
* @brief Definition for the notification message: Sending the running widget information is started.
* @details Input: arg2(uid_t) The user ID.\n
* Input: arg3(const char*) The instance ID.\n
- * Output: arg1(int *) The window ID.\n
+ * Output: data(bundle *) The window ID. It must be used after casting with (unsigned int *).\n
* @since_tizen 5.5
*
* @see __send_running_info()
static int __on_widget_running_info(const char *msg, int arg1, int arg2,
void *arg3, bundle *data)
{
- unsigned int *surf = GINT_TO_POINTER(arg1);
+ unsigned int *surf = (unsigned int *)(data);
uid_t uid = (uid_t)arg2;
const char *instance_id = (const char *)arg3;
instance_id = (const char *)iter->data;
surf = 0;
amd_noti_send(AMD_NOTI_MSG_WIDGET_RUNNING_INFO_SEND,
- GPOINTER_TO_INT_SAFE(&surf), (int)widget->uid,
- (void *)instance_id, NULL);
+ 0, (int)widget->uid,
+ (void *)instance_id, (bundle *)(&surf));
snprintf(buf, sizeof(buf), "%u", surf);
bundle_del(b, AUL_K_WID);
bundle_add_str(b, AUL_K_WID, buf);