Module Name:    src
Committed By:   martin
Date:           Sat Jul 10 13:22:01 UTC 2021

Modified Files:
        src/tests/lib/libc/stdio: t_fmemopen.c

Log Message:
Use intmax_t to printf an off_t


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/tests/lib/libc/stdio/t_fmemopen.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/tests/lib/libc/stdio/t_fmemopen.c
diff -u src/tests/lib/libc/stdio/t_fmemopen.c:1.5 src/tests/lib/libc/stdio/t_fmemopen.c:1.6
--- src/tests/lib/libc/stdio/t_fmemopen.c:1.5	Sat Jul 10 07:50:33 2021
+++ src/tests/lib/libc/stdio/t_fmemopen.c	Sat Jul 10 13:22:01 2021
@@ -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 @@ ATF_TC_BODY(test19, tc)
 /* 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 */

Reply via email to