X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fshared%2Fclock-util.c;h=e66db63ba01263eaac26339bb13294f8e0382e4c;hb=7de80bfe2e61d5818601ccfddbadad3b7703ed70;hp=15535732f7dd1407c65cf89f278f2cc95727fb49;hpb=24efb112451413c1013d5f7fe27d7e2cd407647a;p=elogind.git diff --git a/src/shared/clock-util.c b/src/shared/clock-util.c index 15535732f..e66db63ba 100644 --- a/src/shared/clock-util.c +++ b/src/shared/clock-util.c @@ -43,7 +43,7 @@ #include "clock-util.h" #include "fileio.h" -int clock_get_time(struct tm *tm) { +int clock_get_hwclock(struct tm *tm) { _cleanup_close_ int fd = -1; assert(tm); @@ -64,7 +64,7 @@ int clock_get_time(struct tm *tm) { return 0; } -int clock_set_time(const struct tm *tm) { +int clock_set_hwclock(const struct tm *tm) { _cleanup_close_ int fd = -1; assert(tm); @@ -145,7 +145,7 @@ int clock_reset_timezone(void) { /* * The very first time we set the kernel's timezone, it will warp * the clock. Do a dummy call here, so the time warping is sealed - * and we set only the timezone with next call. + * and we set only the timezone with the next call. */ if (settimeofday(tv_null, &tz) < 0) return -errno;