summaryrefslogtreecommitdiff
path: root/src/basic/time-util.c
diff options
context:
space:
mode:
authorIvan Shapovalov <intelfx@intelfx.name>2016-09-15 05:19:31 +0300
committerIvan Shapovalov <intelfx@intelfx.name>2016-09-15 05:21:09 +0300
commit3a730176b36bc1191c54b149a8147bbf6ec8e482 (patch)
treee9a1c3bbf55bf62afbb17654e47f0cc4868fca7a /src/basic/time-util.c
parentf5b15d1b94717c65ea134cb56462d734a4c37a49 (diff)
time-util: export timespec_load_nsec()
Diffstat (limited to 'src/basic/time-util.c')
-rw-r--r--src/basic/time-util.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/basic/time-util.c b/src/basic/time-util.c
index 0ef1f6393e..fedff1362c 100644
--- a/src/basic/time-util.c
+++ b/src/basic/time-util.c
@@ -40,8 +40,6 @@
#include "strv.h"
#include "time-util.h"
-static nsec_t timespec_load_nsec(const struct timespec *ts);
-
static clockid_t map_clock_id(clockid_t c) {
/* Some more exotic archs (s390, ppc, …) lack the "ALARM" flavour of the clocks. Thus, clock_gettime() will
@@ -198,7 +196,7 @@ usec_t timespec_load(const struct timespec *ts) {
(usec_t) ts->tv_nsec / NSEC_PER_USEC;
}
-static nsec_t timespec_load_nsec(const struct timespec *ts) {
+nsec_t timespec_load_nsec(const struct timespec *ts) {
assert(ts);
if (ts->tv_sec == (time_t) -1 && ts->tv_nsec == (long) -1)