* asctime.c (asctime_r): Use int, not size_t, for a local whose
value fits in int, and where using int can avoid complaints by
some compilers. This can help lessen the mismatch with NetBSD
asctime.c.
---
asctime.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/asctime.c b/asctime.c
index 491d23bf..696bb97a 100644
--- a/asctime.c
+++ b/asctime.c
@@ -76,8 +76,8 @@ asctime_r(struct tm const *restrict timeptr, char *restrict
buf)
register const char * mn;
int year, mday, hour, min, sec;
long long_TM_YEAR_BASE = TM_YEAR_BASE;
- size_t bufsize = (buf == buf_asctime
- ? sizeof buf_asctime : STD_ASCTIME_BUF_SIZE);
+ int bufsize = (buf == buf_asctime
+ ? sizeof buf_asctime : STD_ASCTIME_BUF_SIZE);
if (timeptr == NULL) {
strcpy(buf, "??? ??? ?? ??:??:?? ????\n");
--
2.53.0