Cast argument to int for format string
diff --git a/regress/nonrandomopentest.c b/regress/nonrandomopentest.c index 95bdf9b..56f946e 100644 --- a/regress/nonrandomopentest.c +++ b/regress/nonrandomopentest.c
@@ -54,7 +54,7 @@ exit(1); } if (read(fd, buf, sizeof(buf)) < sizeof(buf)) { - fprintf(stderr, "can't read %d bytes: %s\n", sizeof(buf), strerror(errno)); + fprintf(stderr, "can't read %d bytes: %s\n", (int)sizeof(buf), strerror(errno)); exit(1); } close(fd);