chiark / gitweb /
clock-util: clock_[sg]et_time() -> clock_[sg]et_hwclock()
[elogind.git] / src / shared / clock-util.c
index 15535732f7dd1407c65cf89f278f2cc95727fb49..e66db63ba01263eaac26339bb13294f8e0382e4c 100644 (file)
@@ -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;