summaryrefslogtreecommitdiff
path: root/src/shared
diff options
context:
space:
mode:
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/clock-util.c (renamed from src/shared/hwclock.c)12
-rw-r--r--src/shared/clock-util.h (renamed from src/shared/hwclock.h)10
2 files changed, 11 insertions, 11 deletions
diff --git a/src/shared/hwclock.c b/src/shared/clock-util.c
index 7059d9c75b..15535732f7 100644
--- a/src/shared/hwclock.c
+++ b/src/shared/clock-util.c
@@ -40,10 +40,10 @@
#include "util.h"
#include "log.h"
#include "strv.h"
-#include "hwclock.h"
+#include "clock-util.h"
#include "fileio.h"
-int hwclock_get_time(struct tm *tm) {
+int clock_get_time(struct tm *tm) {
_cleanup_close_ int fd = -1;
assert(tm);
@@ -64,7 +64,7 @@ int hwclock_get_time(struct tm *tm) {
return 0;
}
-int hwclock_set_time(const struct tm *tm) {
+int clock_set_time(const struct tm *tm) {
_cleanup_close_ int fd = -1;
assert(tm);
@@ -79,7 +79,7 @@ int hwclock_set_time(const struct tm *tm) {
return 0;
}
-int hwclock_is_localtime(void) {
+int clock_is_localtime(void) {
_cleanup_fclose_ FILE *f;
/*
@@ -109,7 +109,7 @@ int hwclock_is_localtime(void) {
return 0;
}
-int hwclock_set_timezone(int *min) {
+int clock_set_timezone(int *min) {
const struct timeval *tv_null = NULL;
struct timespec ts;
struct tm *tm;
@@ -135,7 +135,7 @@ int hwclock_set_timezone(int *min) {
return 0;
}
-int hwclock_reset_timezone(void) {
+int clock_reset_timezone(void) {
const struct timeval *tv_null = NULL;
struct timezone tz;
diff --git a/src/shared/hwclock.h b/src/shared/clock-util.h
index 4330b8ea87..63d96fca6d 100644
--- a/src/shared/hwclock.h
+++ b/src/shared/clock-util.h
@@ -21,8 +21,8 @@
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
-int hwclock_is_localtime(void);
-int hwclock_set_timezone(int *min);
-int hwclock_reset_timezone(void);
-int hwclock_get_time(struct tm *tm);
-int hwclock_set_time(const struct tm *tm);
+int clock_is_localtime(void);
+int clock_set_timezone(int *min);
+int clock_reset_timezone(void);
+int clock_get_time(struct tm *tm);
+int clock_set_time(const struct tm *tm);