aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--LICENSE2
-rw-r--r--gmtime.c1
-rw-r--r--localtime.c1
3 files changed, 1 insertions, 3 deletions
diff --git a/LICENSE b/LICENSE
index 68df9b2..b29e37d 100644
--- a/LICENSE
+++ b/LICENSE
@@ -1,6 +1,6 @@
ISC License
-© 2017, 2018, 2021, 2022, 2023 Mattias Andrée <maandree@kth.se>
+© 2017, 2018, 2021, 2022, 2023, 2024 Mattias Andrée <maandree@kth.se>
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
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))
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))