X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Ftimedated.c;h=4abcf1af73df3a88f0a48b3383cfabd15077ee62;hp=55cc904f0cd236d9ea99e8bb9e0e0fe90f1bcb43;hb=ff4daf5a348278abed4dbf8afc3c4297b8cb9877;hpb=add10b5ae7636137f530e15efdf7af075d6361eb diff --git a/src/timedated.c b/src/timedated.c index 55cc904f0..4abcf1af7 100644 --- a/src/timedated.c +++ b/src/timedated.c @@ -332,7 +332,7 @@ static DBusHandlerResult timedate_message_handler( struct tm *tm; /* 2. Teach kernel new timezone */ - hwclock_apply_localtime_delta(); + hwclock_apply_localtime_delta(NULL); /* 3. Sync RTC from system clock, with the new delta */ assert_se(clock_gettime(CLOCK_REALTIME, &ts) == 0); @@ -382,7 +382,7 @@ static DBusHandlerResult timedate_message_handler( /* 2. Teach kernel new timezone */ if (local_rtc) - hwclock_apply_localtime_delta(); + hwclock_apply_localtime_delta(NULL); else hwclock_reset_localtime_delta();