Change-Id: I9c43e2ac07603250e387b3aff824c14034d080b6
Signed-off-by: Jiwoong Im <jiwoong.im@samsung.com>
if (trigger_at_time < 0)
return ERR_ALARM_INVALID_PARAM;
+ _initialize_alarm_info(&alarm_info);
+
alarm_info.alarm_type = alarm_type;
alarm_info.alarm_type |= ALARM_TYPE_RELATIVE;
} else {
current_time.tv_sec += trigger_at_time;
}
+ alarm_info.reserved_info = current_time.tv_sec;
tzset(); /* Processes the TZ environment variable, and Set timezone, daylight, and tzname. */
localtime_r(¤t_time.tv_sec, &duetime_tm);