summaryrefslogtreecommitdiff
path: root/regress/lib/libc
diff options
context:
space:
mode:
authorMoritz Buhl <mbuhl@cvs.openbsd.org>2023-04-13 11:32:07 +0000
committerMoritz Buhl <mbuhl@cvs.openbsd.org>2023-04-13 11:32:07 +0000
commitf7744e8705c1889bd5c1398bc0050b04736d40f1 (patch)
tree7a97b062011bcc17e6f151d4fa2fca1d011e4608 /regress/lib/libc
parentcc6723ac76eec6653fe9625650c4f2b19a3823d7 (diff)
Fix compilation on sparc64.
Diffstat (limited to 'regress/lib/libc')
-rw-r--r--regress/lib/libc/time/time_conversion/timetest.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/regress/lib/libc/time/time_conversion/timetest.c b/regress/lib/libc/time/time_conversion/timetest.c
index 075d7e4ad59..0706704ee1e 100644
--- a/regress/lib/libc/time/time_conversion/timetest.c
+++ b/regress/lib/libc/time/time_conversion/timetest.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: timetest.c,v 1.3 2022/11/22 10:40:10 anton Exp $ */
+/* $OpenBSD: timetest.c,v 1.4 2023/04/13 11:32:06 mbuhl Exp $ */
/*
* Copyright (c) 2022 Bob Beck <beck@openbsd.org>
@@ -1825,6 +1825,7 @@ int main() {
int failures = 0;
int verbose = 0;
struct stat sb;
+ size_t i;
if (stat("/usr/share/zoneinfo/posix", &sb) == -1 ||
stat("/usr/share/zoneinfo/right", &sb) == -1) {
@@ -1834,7 +1835,7 @@ int main() {
exit(0);
}
- for (size_t i = 0; timetests[i].descr != NULL; i++) {
+ for (i = 0; timetests[i].descr != NULL; i++) {
failures += dotimetest(&timetests[i], verbose);
}
if (failures)