Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/bsd/file/dist/src Format string checks for file_vpr...
details: https://anonhg.NetBSD.org/src/rev/725612b8bc48
branches: trunk
changeset: 325806:725612b8bc48
user: joerg <joerg%NetBSD.org@localhost>
date: Tue Jan 07 02:12:07 2014 +0000
description:
Format string checks for file_vprintf and file_error_core
diffstat:
external/bsd/file/dist/src/file.h | 5 +++--
external/bsd/file/dist/src/funcs.c | 5 +++--
2 files changed, 6 insertions(+), 4 deletions(-)
diffs (45 lines):
diff -r 7fddfd41f1b6 -r 725612b8bc48 external/bsd/file/dist/src/file.h
--- a/external/bsd/file/dist/src/file.h Tue Jan 07 02:11:29 2014 +0000
+++ b/external/bsd/file/dist/src/file.h Tue Jan 07 02:12:07 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: file.h,v 1.9 2013/12/01 19:32:15 christos Exp $ */
+/* $NetBSD: file.h,v 1.10 2014/01/07 02:12:07 joerg Exp $ */
/*
* Copyright (c) Ian F. Darwin 1986-1995.
@@ -417,7 +417,8 @@
size_t);
protected int file_fsmagic(struct magic_set *, const char *, struct stat *);
protected int file_pipe2file(struct magic_set *, int, const void *, size_t);
-protected int file_vprintf(struct magic_set *, const char *, va_list);
+protected int file_vprintf(struct magic_set *, const char *, va_list)
+ __attribute__((__format__(__printf__, 2, 0)));
protected size_t file_printedlen(const struct magic_set *);
protected int file_replace(struct magic_set *, const char *, const char *);
protected int file_printf(struct magic_set *, const char *, ...)
diff -r 7fddfd41f1b6 -r 725612b8bc48 external/bsd/file/dist/src/funcs.c
--- a/external/bsd/file/dist/src/funcs.c Tue Jan 07 02:11:29 2014 +0000
+++ b/external/bsd/file/dist/src/funcs.c Tue Jan 07 02:12:07 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: funcs.c,v 1.6 2013/12/01 19:32:15 christos Exp $ */
+/* $NetBSD: funcs.c,v 1.7 2014/01/07 02:12:07 joerg Exp $ */
/*
* Copyright (c) Christos Zoulas 2003.
@@ -32,7 +32,7 @@
#if 0
FILE_RCSID("@(#)$File: funcs.c,v 1.64 2013/11/19 23:49:44 christos Exp $")
#else
-__RCSID("$NetBSD: funcs.c,v 1.6 2013/12/01 19:32:15 christos Exp $");
+__RCSID("$NetBSD: funcs.c,v 1.7 2014/01/07 02:12:07 joerg Exp $");
#endif
#endif /* lint */
@@ -101,6 +101,7 @@
* error - print best error message possible
*/
/*VARARGS*/
+__attribute__((__format__(__printf__, 3, 0)))
private void
file_error_core(struct magic_set *ms, int error, const char *f, va_list va,
size_t lineno)
Home |
Main Index |
Thread Index |
Old Index