Remove unused variables
authorjusung son <jusung07.son@samsung.com>
Tue, 20 Feb 2018 02:08:11 +0000 (11:08 +0900)
committerInkyun Kil <inkyun.kil@samsung.com>
Wed, 21 Feb 2018 00:04:36 +0000 (09:04 +0900)
Change-Id: I24fd319b69e37789470438e9d49a9065c7e014b2
Signed-off-by: jusung son <jusung07.son@samsung.com>
src/alarm-lib.c

index 1322d1e..7937704 100755 (executable)
@@ -384,9 +384,6 @@ out:
 
 static int __alarm_context_init()
 {
-       int fd = 0;
-       int ret = 0;
-
        if (sub_initialized)
                return ALARMMGR_RESULT_SUCCESS;
 
@@ -459,7 +456,6 @@ static void __bus_get_for_async_api(GObject *source_object, GAsyncResult *res,
 static int __sub_init()
 {
        GError *error = NULL;
-       int fd = 0;
        int ret = 0;
 
        pthread_mutex_lock(&init_lock);
@@ -1061,9 +1057,7 @@ EXPORT_API int alarmmgr_add_alarm_with_localtime(alarm_entry_t *alarm,
 EXPORT_API int alarmmgr_add_alarm_noti_with_localtime(alarm_entry_t *alarm, notification_h noti, alarm_id_t *alarm_id)
 {
        alarm_info_t *alarm_info = NULL;        /* = (alarm_info_t*)alarm; */
-       const char *operation = NULL;
        int error_code = 0;
-       int result;
 
        if (alarm == NULL)
                return ERR_ALARM_INVALID_PARAM;
@@ -1226,11 +1220,9 @@ EXPORT_API int alarmmgr_add_alarm_noti(int alarm_type, time_t trigger_at_time,
                alarm_id_t *alarm_id)
 {
        int error_code = 0;
-       int result;
        struct timeval current_time;
        struct tm duetime_tm;
        alarm_info_t alarm_info;
-       const char *operation = NULL;
 
        if (__alarmmgr_init_appsvc() < 0) {
                ALARM_MGR_EXCEPTION_PRINT("Unable to initialize dbus!!!\n");
@@ -1304,7 +1296,6 @@ static int _alarmmgr_add_alarm(int alarm_type,
        char dst_service_name_mod[MAX_SERVICE_NAME_LEN] = { 0 };
        int i = 0;
        int j = 0;
-       int result;
        int error_code;
        struct timeval current_time;
        struct tm duetime_tm;