Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/lib/libc/gen Mark w_printf as __printflike and fix a f...
details: https://anonhg.NetBSD.org/src/rev/aef2631a4067
branches: trunk
changeset: 778063:aef2631a4067
user: joerg <joerg%NetBSD.org@localhost>
date: Thu Mar 15 01:44:07 2012 +0000
description:
Mark w_printf as __printflike and fix a format string error.
diffstat:
tests/lib/libc/gen/t_humanize_number.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r f97cff803bd5 -r aef2631a4067 tests/lib/libc/gen/t_humanize_number.c
--- a/tests/lib/libc/gen/t_humanize_number.c Thu Mar 15 01:02:19 2012 +0000
+++ b/tests/lib/libc/gen/t_humanize_number.c Thu Mar 15 01:44:07 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_humanize_number.c,v 1.5 2011/07/07 09:49:59 jruoho Exp $ */
+/* $NetBSD: t_humanize_number.c,v 1.6 2012/03/15 01:44:07 joerg Exp $ */
/*-
* Copyright (c) 2010, 2011 The NetBSD Foundation, Inc.
@@ -112,7 +112,7 @@
const char *formatflags(char *, size_t, const struct hnflags *, size_t, int);
void newline(void);
-void w_printf(const char *, ...);
+void w_printf(const char *, ...) __printflike(1, 2);
int main(int, char *[]);
const char *
@@ -226,7 +226,7 @@
(rv == -1 || strcmp(buf, ho->ho_retstr) == 0))
continue;
- w_printf("humanize_number(\"%s\", %d, %" PRId64 ",",
+ w_printf("humanize_number(\"%s\", %zu, %" PRId64 ",",
ho->ho_retstr, ho->ho_len, ho->ho_num);
w_printf("\"%s\",", ho->ho_suffix);
w_printf("%s,", formatflags(fbuf, sizeof(fbuf), scale_flags,
Home |
Main Index |
Thread Index |
Old Index