*/
/*
* file.h - definitions for file(1) program
- * @(#)$File: file.h,v 1.145 2013/04/22 15:30:11 christos Exp $
+ * @(#)$File: file.h,v 1.146 2013/12/05 17:02:34 christos Exp $
*/
#ifndef __file_h__
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 *, ...)
#include "file.h"
#ifndef lint
-FILE_RCSID("@(#)$File: funcs.c,v 1.64 2013/11/19 23:49:44 christos Exp $")
+FILE_RCSID("@(#)$File: funcs.c,v 1.65 2013/12/05 17:02:34 christos Exp $")
#endif /* lint */
#include "magic.h"
* 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)