X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fbasic%2Ftime-util.c;h=17d3da6fa296c5821300f2767907375f9dc201fb;hp=52a0382c74b385ffadf3644add040e8bea2592d7;hb=c286398e07a7a16aa88a3437318cb2edf8c082c1;hpb=9d615aabbd765b1186932b1bbd1932eb3fa20523 diff --git a/src/basic/time-util.c b/src/basic/time-util.c index 52a0382c7..17d3da6fa 100644 --- a/src/basic/time-util.c +++ b/src/basic/time-util.c @@ -800,6 +800,8 @@ int parse_sec(const char *t, usec_t *usec) { return 0; } +/// UNNEEDED by elogind +#if 0 int parse_nsec(const char *t, nsec_t *nsec) { static const struct { const char *suffix; @@ -925,8 +927,6 @@ int parse_nsec(const char *t, nsec_t *nsec) { return 0; } -/// UNNEEDED by elogind -#if 0 bool ntp_synced(void) { struct timex txc = {}; @@ -1002,7 +1002,6 @@ int get_timezones(char ***ret) { return 0; } -#endif // 0 bool timezone_is_valid(const char *name) { bool slash = false; @@ -1089,3 +1088,4 @@ int get_timezone(char **tz) { *tz = z; return 0; } +#endif // 0