static gboolean __alarm_expired_directly(gpointer user_data);
void _release_alarm_info_t(__alarm_info_t *entry);
-static notification_h __get_notification(guchar *data, int datalen);
+static notification_h __get_notification(guchar *data, gsize datalen);
static void __free_cached_value(gpointer data);
static bool __get_caller_unique_name(int pid, char *unique_name, int size, bool *is_app, uid_t uid)
{
GVariant *noti_gv;
guchar *decoded_data;
- int decoded_datalen;
+ gsize decoded_datalen;
notification_h noti = NULL;
char *new_noti_data = NULL;
guchar* data = NULL;
int datalen;
- decoded_data = g_base64_decode(noti_data, (gsize *)&decoded_datalen);
+ decoded_data = g_base64_decode(noti_data, &decoded_datalen);
if (decoded_data == NULL)
return NULL;
return -1;
}
-static notification_h __get_notification(guchar *data, int datalen)
+static notification_h __get_notification(guchar *data, gsize datalen)
{
int ret;
GVariant *noti_gv = NULL;
static void __expire_notification(__alarm_info_t *alarm_info)
{
int ret;
- int datalen;
+ gsize datalen;
notification_h noti;
guchar *noti_data;
int expire_mode = ALARM_EXPIRE_MODE_NORMAL;
- noti_data = g_base64_decode(alarm_info->noti,
- (gsize *)&datalen);
+ noti_data = g_base64_decode(alarm_info->noti, &datalen);
if (!noti_data) {
LOGE("Failed to decode noti data");
return;