summaryrefslogtreecommitdiff
path: root/src/shared
diff options
context:
space:
mode:
authorKay Sievers <kay@vrfy.org>2014-05-22 21:21:38 +0900
committerKay Sievers <kay@vrfy.org>2014-05-24 07:56:20 +0900
commit24efb112451413c1013d5f7fe27d7e2cd407647a (patch)
treea760e567b968e63e91de5725395b10e48de46b49 /src/shared
parent68baa8faf30f4e097bcf32d5b2d4880f85a0bdc7 (diff)
shared: rename hwclock.[ch] to clock-util.[ch]
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);