We all felt the need for the return type change as well
authorEnrico Zini <enrico@enricozini.org>
Mon, 21 Sep 2009 21:32:10 +0000 (23:32 +0200)
committerEnrico Zini <enrico@enricozini.org>
Mon, 21 Sep 2009 21:32:10 +0000 (23:32 +0200)
src/clock.vala

index d6b2d13f01137d1f20a67936e23ab5e058005035..cbed8e6de306a805d9140b9059518179a3fe3cef 100644 (file)
@@ -137,10 +137,10 @@ public class Clock: zavai.Service
                                zavai.log.error("Cannot reschedule alarms: " + e.message);
                        }
 
-                       string t = rtc.GetCurrentTime();
-                       stderr.printf("Current time: %d, RTC time: %s\n", (int)time_t(), t);
+                       int t = rtc.GetCurrentTime();
+                       stderr.printf("Current time: %d, RTC time: %d\n", (int)time_t(), t);
                        t = rtc.GetWakeupTime();
-                       stderr.printf("Scheduled alarm: %d, RTC wakeup time: %s\n", (int)alarms.data.deadline, t);
+                       stderr.printf("Scheduled alarm: %d, RTC wakeup time: %d\n", (int)alarms.data.deadline, t);
                } else
                        zavai.log.info("No alarms left to reschedule");
                schedule_changed();