diff options
| author | Lorenz Kästle <12514511+RincewindsHat@users.noreply.github.com> | 2026-03-26 12:53:53 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-03-26 12:53:53 +0100 |
| commit | 13e14a6bfd9f29cbfeab0c5161d2a994f97532e7 (patch) | |
| tree | 3aa7186fe092e42783dc7e981dc39a74ea61c466 /gl/stat-time.h | |
| parent | 9d8503f90ef25b2cecd324dc118e441f40233ea8 (diff) | |
| download | monitoring-plugins-13e14a6bfd9f29cbfeab0c5161d2a994f97532e7.tar.gz | |
Update/gnulib 2026 03 (#2247)
* Sync with the 202601-stable Gnulib code (4a3650d887)
* Ignore more deps stuff in gnulib
* Remove autogenerated gnulib files
* Ignore more gnulib generated headers
Diffstat (limited to 'gl/stat-time.h')
| -rw-r--r-- | gl/stat-time.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gl/stat-time.h b/gl/stat-time.h index 38315b9f..45364316 100644 --- a/gl/stat-time.h +++ b/gl/stat-time.h | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | /* stat-related time functions. | 1 | /* stat-related time functions. |
| 2 | 2 | ||
| 3 | Copyright (C) 2005, 2007, 2009-2025 Free Software Foundation, Inc. | 3 | Copyright (C) 2005, 2007, 2009-2026 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | This file is free software: you can redistribute it and/or modify | 5 | This file is free software: you can redistribute it and/or modify |
| 6 | it under the terms of the GNU Lesser General Public License as | 6 | it under the terms of the GNU Lesser General Public License as |
| @@ -232,8 +232,7 @@ stat_time_normalize (int result, _GL_UNUSED struct stat *st) | |||
| 232 | short int const ts_off[] = { STAT_TIMESPEC_OFFSETOF (st_atim), | 232 | short int const ts_off[] = { STAT_TIMESPEC_OFFSETOF (st_atim), |
| 233 | STAT_TIMESPEC_OFFSETOF (st_mtim), | 233 | STAT_TIMESPEC_OFFSETOF (st_mtim), |
| 234 | STAT_TIMESPEC_OFFSETOF (st_ctim) }; | 234 | STAT_TIMESPEC_OFFSETOF (st_ctim) }; |
| 235 | int i; | 235 | for (int i = 0; i < sizeof ts_off / sizeof *ts_off; i++) |
| 236 | for (i = 0; i < sizeof ts_off / sizeof *ts_off; i++) | ||
| 237 | { | 236 | { |
| 238 | struct timespec *ts = (struct timespec *) ((char *) st + ts_off[i]); | 237 | struct timespec *ts = (struct timespec *) ((char *) st + ts_off[i]); |
| 239 | long int q = ts->tv_nsec / timespec_hz; | 238 | long int q = ts->tv_nsec / timespec_hz; |
