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 fix printf format strings



details:   https://anonhg.NetBSD.org/src/rev/db9129debe5b
branches:  trunk
changeset: 984454:db9129debe5b
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Jul 08 15:21:40 2021 +0000

description:
fix printf format strings

diffstat:

 tests/lib/libc/stdio/h_intr.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (41 lines):

diff -r 57cb0027073e -r db9129debe5b tests/lib/libc/stdio/h_intr.c
--- a/tests/lib/libc/stdio/h_intr.c     Thu Jul 08 12:30:20 2021 +0000
+++ b/tests/lib/libc/stdio/h_intr.c     Thu Jul 08 15:21:40 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: h_intr.c,v 1.1 2021/07/08 09:07:46 christos Exp $      */
+/*     $NetBSD: h_intr.c,v 1.2 2021/07/08 15:21:40 christos Exp $      */
 
 /**
  * Test of interrupted writes to popen()'ed commands.
@@ -25,7 +25,7 @@
  */
 
 #include <sys/cdefs.h>
-__RCSID("$NetBSD: h_intr.c,v 1.1 2021/07/08 09:07:46 christos Exp $");
+__RCSID("$NetBSD: h_intr.c,v 1.2 2021/07/08 15:21:40 christos Exp $");
 
 #include <time.h>
 #include <err.h>
@@ -144,7 +144,7 @@
                nw += i;
        }
        alarmtimer(0);
-       // printf("%lu\n", nw);
+       // printf("%zu\n", nw);
 
        fclose(ifp);
        if (pclose(ofp) != 0)
@@ -341,11 +341,11 @@
        fprintf(fp, "%s: Test interrupted writes to popen()ed CMD.\n",
            getprogname());
        fprintf(fp, "\n");
-       fprintf(fp, "  -b SIZE   Buffer size (%lu)\n", opts.bsize);
+       fprintf(fp, "  -b SIZE   Buffer size (%zu)\n", opts.bsize);
        fprintf(fp, "  -c CMD    Command to run on each FILE.\n");
        fprintf(fp, "  -h        This message.\n");
        fprintf(fp, "  -p        Buffering type %s.\n", getbtype(opts.btype));
-       fprintf(fp, "  -s SIZE   stdio buffer size (%lu)\n", opts.ssize);
+       fprintf(fp, "  -s SIZE   stdio buffer size (%zu)\n", opts.ssize);
        fprintf(fp, "  -t TMOUT  Interrupt writing to CMD every (%d) ms\n",
            opts.tmout);
 }



Home | Main Index | Thread Index | Old Index