File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -304,24 +304,24 @@ static long rtc_dev_ioctl(struct file *file,
304
304
* Not supported here.
305
305
*/
306
306
{
307
- unsigned long now , then ;
307
+ time64_t now , then ;
308
308
309
309
err = rtc_read_time (rtc , & tm );
310
310
if (err < 0 )
311
311
return err ;
312
- rtc_tm_to_time (& tm , & now );
312
+ now = rtc_tm_to_time64 (& tm );
313
313
314
314
alarm .time .tm_mday = tm .tm_mday ;
315
315
alarm .time .tm_mon = tm .tm_mon ;
316
316
alarm .time .tm_year = tm .tm_year ;
317
317
err = rtc_valid_tm (& alarm .time );
318
318
if (err < 0 )
319
319
return err ;
320
- rtc_tm_to_time (& alarm .time , & then );
320
+ then = rtc_tm_to_time64 (& alarm .time );
321
321
322
322
/* alarm may need to wrap into tomorrow */
323
323
if (then < now ) {
324
- rtc_time_to_tm (now + 24 * 60 * 60 , & tm );
324
+ rtc_time64_to_tm (now + 24 * 60 * 60 , & tm );
325
325
alarm .time .tm_mday = tm .tm_mday ;
326
326
alarm .time .tm_mon = tm .tm_mon ;
327
327
alarm .time .tm_year = tm .tm_year ;
You can’t perform that action at this time.
0 commit comments