diff options
| author | mbuhl <> | 2023-04-13 11:32:06 +0000 |
|---|---|---|
| committer | mbuhl <> | 2023-04-13 11:32:06 +0000 |
| commit | d6c1827d02417863e7ba297ae8064ef4ffeb4597 (patch) | |
| tree | fe9c5df1ea4e28eb75278817620b5a677048cd97 /src/regress/lib/libc | |
| parent | 6db884de114b8b0a694e126243dee56a4699f9af (diff) | |
| download | openbsd-d6c1827d02417863e7ba297ae8064ef4ffeb4597.tar.gz openbsd-d6c1827d02417863e7ba297ae8064ef4ffeb4597.tar.bz2 openbsd-d6c1827d02417863e7ba297ae8064ef4ffeb4597.zip | |
Fix compilation on sparc64.
Diffstat (limited to 'src/regress/lib/libc')
| -rw-r--r-- | src/regress/lib/libc/time/time_conversion/timetest.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/regress/lib/libc/time/time_conversion/timetest.c b/src/regress/lib/libc/time/time_conversion/timetest.c index 075d7e4ad5..0706704ee1 100644 --- a/src/regress/lib/libc/time/time_conversion/timetest.c +++ b/src/regress/lib/libc/time/time_conversion/timetest.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: timetest.c,v 1.3 2022/11/22 10:40:10 anton Exp $ */ | 1 | /* $OpenBSD: timetest.c,v 1.4 2023/04/13 11:32:06 mbuhl Exp $ */ |
| 2 | 2 | ||
| 3 | /* | 3 | /* |
| 4 | * Copyright (c) 2022 Bob Beck <beck@openbsd.org> | 4 | * Copyright (c) 2022 Bob Beck <beck@openbsd.org> |
| @@ -1825,6 +1825,7 @@ int main() { | |||
| 1825 | int failures = 0; | 1825 | int failures = 0; |
| 1826 | int verbose = 0; | 1826 | int verbose = 0; |
| 1827 | struct stat sb; | 1827 | struct stat sb; |
| 1828 | size_t i; | ||
| 1828 | 1829 | ||
| 1829 | if (stat("/usr/share/zoneinfo/posix", &sb) == -1 || | 1830 | if (stat("/usr/share/zoneinfo/posix", &sb) == -1 || |
| 1830 | stat("/usr/share/zoneinfo/right", &sb) == -1) { | 1831 | stat("/usr/share/zoneinfo/right", &sb) == -1) { |
| @@ -1834,7 +1835,7 @@ int main() { | |||
| 1834 | exit(0); | 1835 | exit(0); |
| 1835 | } | 1836 | } |
| 1836 | 1837 | ||
| 1837 | for (size_t i = 0; timetests[i].descr != NULL; i++) { | 1838 | for (i = 0; timetests[i].descr != NULL; i++) { |
| 1838 | failures += dotimetest(&timetests[i], verbose); | 1839 | failures += dotimetest(&timetests[i], verbose); |
| 1839 | } | 1840 | } |
| 1840 | if (failures) | 1841 | if (failures) |
