aboutsummaryrefslogtreecommitdiffstats
path: root/gmtime.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2024-08-18 10:04:07 +0200
committerMattias Andrée <maandree@kth.se>2024-08-18 10:04:07 +0200
commit68337473cca8523ebf657109598ff82ff4ba794c (patch)
treeaefc13183c04fc527f67b25c6b14d651488110cb /gmtime.c
parentAdd @since for definitions added in version 1.4 (diff)
parentFix return value for libsimple_{local,gm}time.c (diff)
downloadlibsimple-68337473cca8523ebf657109598ff82ff4ba794c.tar.gz
libsimple-68337473cca8523ebf657109598ff82ff4ba794c.tar.bz2
libsimple-68337473cca8523ebf657109598ff82ff4ba794c.tar.xz
Merge tag '1.5' into since
Version 1.5
Diffstat (limited to 'gmtime.c')
-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))