Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/bsd/libarchive/dist/libarchive_fe Annotate warnc/er...
details: https://anonhg.NetBSD.org/src/rev/f684e5557117
branches: trunk
changeset: 325803:f684e5557117
user: joerg <joerg%NetBSD.org@localhost>
date: Tue Jan 07 02:09:37 2014 +0000
description:
Annotate warnc/errc for format string checking.
diffstat:
external/bsd/libarchive/dist/libarchive_fe/err.c | 2 +-
external/bsd/libarchive/dist/libarchive_fe/err.h | 5 +++--
2 files changed, 4 insertions(+), 3 deletions(-)
diffs (26 lines):
diff -r 73eed0c7992c -r f684e5557117 external/bsd/libarchive/dist/libarchive_fe/err.c
--- a/external/bsd/libarchive/dist/libarchive_fe/err.c Tue Jan 07 02:09:01 2014 +0000
+++ b/external/bsd/libarchive/dist/libarchive_fe/err.c Tue Jan 07 02:09:37 2014 +0000
@@ -42,7 +42,7 @@
const char *lafe_progname;
-static void
+static __printflike(2, 0) void
lafe_vwarnc(int code, const char *fmt, va_list ap)
{
fprintf(stderr, "%s: ", lafe_progname);
diff -r 73eed0c7992c -r f684e5557117 external/bsd/libarchive/dist/libarchive_fe/err.h
--- a/external/bsd/libarchive/dist/libarchive_fe/err.h Tue Jan 07 02:09:01 2014 +0000
+++ b/external/bsd/libarchive/dist/libarchive_fe/err.h Tue Jan 07 02:09:37 2014 +0000
@@ -35,7 +35,8 @@
extern const char *lafe_progname;
-void lafe_warnc(int code, const char *fmt, ...);
-void lafe_errc(int eval, int code, const char *fmt, ...) __LA_DEAD;
+void lafe_warnc(int code, const char *fmt, ...) __printflike(2, 3);
+void lafe_errc(int eval, int code, const char *fmt, ...)
+ __LA_DEAD __printflike(3, 4);
#endif
Home |
Main Index |
Thread Index |
Old Index