Skip to content

Commit

Permalink
[fix] Use correct time_t type
Browse files Browse the repository at this point in the history
Cf. <koreader#969 (comment)>.

Otherwise the interface won't work on… platforms where it doesn't matter,
but it's better to be correct. ;-)
  • Loading branch information
Frenzie committed Sep 12, 2019
1 parent 6f7dd8b commit 353030e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ffi/rtc.lua
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ you can process your value with @{secondsFromNowToEpoch}.
function RTC:setWakeupAlarm(epoch, enabled)
enabled = (enabled ~= nil) and enabled or true

local ptm = C.gmtime(ffi.new("int[1]", epoch))
local ptm = C.gmtime(ffi.new("time_t[1]", epoch))
self._wakeup_scheduled_ptm = ptm

local wake = ffi.new("struct rtc_wkalrm")
Expand Down

0 comments on commit 353030e

Please sign in to comment.