X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fbasic%2Ftime-util.c;h=2455636843f8e80b13c0fa8f73ff42aa17fe581d;hb=26a2fa65615e047ee5f1ceb24e19aa3548e3a033;hp=cf32c04086364f59bfcf4f43e7b66fc8adce3245;hpb=d72545b2a0c29e5844c508101cd4720c356193b4;p=elogind.git diff --git a/src/basic/time-util.c b/src/basic/time-util.c index cf32c0408..245563684 100644 --- a/src/basic/time-util.c +++ b/src/basic/time-util.c @@ -40,10 +40,6 @@ #include "strv.h" #include "time-util.h" -#if 0 /// UNNEEDED by elogind -static nsec_t timespec_load_nsec(const struct timespec *ts); -#endif // 0 - 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 @@ -205,7 +201,7 @@ usec_t timespec_load(const struct timespec *ts) { } #if 0 /// UNNEEDED by elogind -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)