From a0a451e55ccf90c11c79102abfdff77badf3de0f Mon Sep 17 00:00:00 2001 From: Marko Kreen Date: Thu, 24 Feb 2011 13:36:24 +0200 Subject: [PATCH] err: add _PRINTF tags --- usual/err.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/usual/err.h b/usual/err.h index c95c210..2257288 100644 --- a/usual/err.h +++ b/usual/err.h @@ -32,19 +32,19 @@ #ifndef HAVE_ERR /** Print formatted message and strerror(errno) to stderr and exit with given error code */ -void err(int e, const char *fmt, ...); +void err(int e, const char *fmt, ...) _PRINTF(2, 3); #endif #ifndef HAVE_ERRX /** Print formatted message to stderr and exit with given error code */ -void errx(int e, const char *fmt, ...); +void errx(int e, const char *fmt, ...) _PRINTF(2, 3); #endif #ifndef HAVE_WARN /** Print formatted message and strerror(errno) to stderr */ -void warn(const char *fmt, ...); +void warn(const char *fmt, ...) _PRINTF(1, 2); #endif #ifndef HAVE_WARNX /** Print formatted message to stderr */ -void warnx(const char *fmt, ...); +void warnx(const char *fmt, ...) _PRINTF(1, 2); #endif #ifndef HAVE_SETPROGNAME /** Set program name to that will printed as prefix to error messages */ -- 2.39.5