aboutsummaryrefslogtreecommitdiffstats
path: root/gmtime.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2024-01-10 21:37:19 +0100
committerMattias Andrée <maandree@kth.se>2024-01-10 21:37:45 +0100
commit5386671eec7de485801b747b91e77828d20fa03f (patch)
tree65afad076775da2bbc428f4e3c9bea0f3b0693bd /gmtime.c
parentUpdate VERSION_MINOR (diff)
downloadlibsimple-1.5.tar.gz
libsimple-1.5.tar.bz2
libsimple-1.5.tar.xz
Fix return value for libsimple_{local,gm}time.c1.5
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--gmtime.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/gmtime.c b/gmtime.c
index 7a84289..2fc1915 100644
--- a/gmtime.c
+++ b/gmtime.c
@@ -26,7 +26,6 @@ libsimple_gmtime(struct tm *tm, struct timespec *ts)
if (!gmtime_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 (!gmtime_r(&timex.time.tv_sec, tm))