fix ppc build

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22575 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jérôme Duval 2007-10-15 19:07:52 +00:00
parent 2bea4eae5c
commit 59b66b0cb5

View File

@ -181,7 +181,7 @@ PPCOpenFirmware::SetHardwareRTC(uint32 seconds)
struct tm t;
rtc_secs_to_tm(seconds, &t);
t.tm_year += RTC_EPOCHE_BASE_YEAR;
t.tm_year += RTC_EPOCH_BASE_YEAR;
t.tm_mon++;
if (of_call_method(fRTC, "set-time", 6, 0, t.tm_year, t.tm_mon, t.tm_mday,
@ -201,7 +201,7 @@ PPCOpenFirmware::GetHardwareRTC()
return 0;
}
t.tm_year -= RTC_EPOCHE_BASE_YEAR;
t.tm_year -= RTC_EPOCH_BASE_YEAR;
t.tm_mon--;
return rtc_tm_to_secs(&t);