diff options
author | Mattias Andrée <maandree@kth.se> | 2024-01-10 21:37:19 +0100 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2024-01-10 21:37:45 +0100 |
commit | 5386671eec7de485801b747b91e77828d20fa03f (patch) | |
tree | 65afad076775da2bbc428f4e3c9bea0f3b0693bd /localtime.c | |
parent | Update VERSION_MINOR (diff) | |
download | libsimple-5386671eec7de485801b747b91e77828d20fa03f.tar.gz libsimple-5386671eec7de485801b747b91e77828d20fa03f.tar.bz2 libsimple-5386671eec7de485801b747b91e77828d20fa03f.tar.xz |
Fix return value for libsimple_{local,gm}time.c1.5
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'localtime.c')
-rw-r--r-- | localtime.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/localtime.c b/localtime.c index 96bd1e1..dd4acc2 100644 --- a/localtime.c +++ b/localtime.c @@ -26,7 +26,6 @@ libsimple_localtime(struct tm *tm, struct timespec *ts) if (!localtime_r(&timex.time.tv_sec, tm)) return -1; tm->tm_sec += 1; - return 1; } else if (r == TIME_DEL) { timex.time.tv_sec += 1; if (!localtime_r(&timex.time.tv_sec, tm)) |