diff options
| author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2026-01-02 13:52:21 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-01-02 13:52:21 +0100 |
| commit | 1e108210b67b4e1a3bfef60d0a7718b8d0080c1a (patch) | |
| tree | 3669cfa7ceb8813f82199f6b9b66ad7f7c5d7b65 /gl/timegm.c | |
| parent | e2694816e78986f7a97691dc5b013cbeb7eede4f (diff) | |
| parent | bfc6492562f6cef4badda192142a0d10a3ed870b (diff) | |
| download | monitoring-plugins-1e108210b67b4e1a3bfef60d0a7718b8d0080c1a.tar.gz | |
Merge branch 'master' into netsnmp595-fix
Diffstat (limited to 'gl/timegm.c')
| -rw-r--r-- | gl/timegm.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gl/timegm.c b/gl/timegm.c index e5cf30c0..4c2615b9 100644 --- a/gl/timegm.c +++ b/gl/timegm.c | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | /* Convert UTC calendar time to simple time. Like mktime but assumes UTC. | 1 | /* Convert UTC calendar time to simple time. Like mktime but assumes UTC. |
| 2 | 2 | ||
| 3 | Copyright (C) 1994-2024 Free Software Foundation, Inc. | 3 | Copyright (C) 1994-2025 Free Software Foundation, Inc. |
| 4 | This file is part of the GNU C Library. | 4 | This file is part of the GNU C Library. |
| 5 | 5 | ||
| 6 | The GNU C Library is free software; you can redistribute it and/or | 6 | The GNU C Library is free software; you can redistribute it and/or |
| @@ -30,8 +30,7 @@ __time64_t | |||
| 30 | __timegm64 (struct tm *tmp) | 30 | __timegm64 (struct tm *tmp) |
| 31 | { | 31 | { |
| 32 | static mktime_offset_t gmtime_offset; | 32 | static mktime_offset_t gmtime_offset; |
| 33 | tmp->tm_isdst = 0; | 33 | return __mktime_internal (tmp, false, &gmtime_offset); |
| 34 | return __mktime_internal (tmp, __gmtime64_r, &gmtime_offset); | ||
| 35 | } | 34 | } |
| 36 | 35 | ||
| 37 | #if defined _LIBC && __TIMESIZE != 64 | 36 | #if defined _LIBC && __TIMESIZE != 64 |
