Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/lib/libc/stdio Use intmax_t to printf an off_t
details: https://anonhg.NetBSD.org/src/rev/fce8b9d91139
branches: trunk
changeset: 1022237:fce8b9d91139
user: martin <martin%NetBSD.org@localhost>
date: Sat Jul 10 13:22:01 2021 +0000
description:
Use intmax_t to printf an off_t
diffstat:
tests/lib/libc/stdio/t_fmemopen.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (19 lines):
diff -r 6a7db376e5d3 -r fce8b9d91139 tests/lib/libc/stdio/t_fmemopen.c
--- a/tests/lib/libc/stdio/t_fmemopen.c Sat Jul 10 12:17:31 2021 +0000
+++ b/tests/lib/libc/stdio/t_fmemopen.c Sat Jul 10 13:22:01 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_fmemopen.c,v 1.5 2021/07/10 07:50:33 christos Exp $ */
+/* $NetBSD: t_fmemopen.c,v 1.6 2021/07/10 13:22:01 martin Exp $ */
/*-
* Copyright (c)2010 Takehiko NOZAKI,
@@ -965,7 +965,8 @@
/* don't accept non nul character at end of buffer */
ATF_CHECK(fputc(0x1, fp) == EOF);
ATF_CHECK_MSG(ftello(fp) == (off_t)t->n,
- "%td != %td", ftello(fp), (off_t)t->n);
+ "%jd != %jd", (intmax_t)ftello(fp),
+ (intmax_t)t->n);
ATF_CHECK(feof(fp) == 0);
/* accept nul character at end of buffer */
Home |
Main Index |
Thread Index |
Old Index