diff options
author | Jörg Frings-Fürst <debian@jff.email> | 2022-10-24 22:26:08 +0200 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff.email> | 2022-10-24 22:26:08 +0200 |
commit | e97e0882ffc87a91e7818137196f1b74134566df (patch) | |
tree | 285662381eaa0514f988142bff0c8a9685c84dc0 /tests/stat-time.h | |
parent | cc0876a2fa9e703b1064992ab535f3eed57e9c71 (diff) | |
parent | cb4186bef1b44691db4221406d001a8d40c65b4b (diff) |
Merge branch 'feature/upstream' into develop
Diffstat (limited to 'tests/stat-time.h')
-rw-r--r-- | tests/stat-time.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/stat-time.h b/tests/stat-time.h index 6b0088e3..b661196e 100644 --- a/tests/stat-time.h +++ b/tests/stat-time.h @@ -20,9 +20,8 @@ #ifndef STAT_TIME_H #define STAT_TIME_H 1 -#include "intprops.h" - #include <errno.h> +#include <stdckdint.h> #include <stddef.h> #include <sys/stat.h> #include <time.h> @@ -232,7 +231,7 @@ stat_time_normalize (int result, _GL_UNUSED struct stat *st) /* Overflow is possible, as Solaris 11 stat can yield tv_sec == TYPE_MINIMUM (time_t) && tv_nsec == -1000000000. INT_ADD_WRAPV is OK, since time_t is signed on Solaris. */ - if (INT_ADD_WRAPV (q, ts->tv_sec, &ts->tv_sec)) + if (ckd_add (&ts->tv_sec, q, ts->tv_sec)) { errno = EOVERFLOW; return -1; |