From: Mark Andrews Date: Tue, 18 Feb 2014 20:25:29 +0000 (+1100) Subject: add attributes to fatal, warn and delve_log X-Git-Tag: v9.10.0b1~84 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=43c1433ef238229065dfc2954d4ff28db5106c97;p=thirdparty%2Fbind9.git add attributes to fatal, warn and delve_log --- diff --git a/bin/delve/delve.c b/bin/delve/delve.c index efca9ee3b35..44e8fca0ac2 100644 --- a/bin/delve/delve.c +++ b/bin/delve/delve.c @@ -191,6 +191,10 @@ usage(void) { exit(1); } +ISC_PLATFORM_NORETURN_PRE static void +fatal(const char *format, ...) +ISC_FORMAT_PRINTF(1, 2) ISC_PLATFORM_NORETURN_POST; + static void fatal(const char *format, ...) { va_list args; @@ -204,6 +208,9 @@ fatal(const char *format, ...) { exit(1); } +static void +warn(const char *format, ...) ISC_FORMAT_PRINTF(1, 2); + static void warn(const char *format, ...) { va_list args; @@ -228,6 +235,9 @@ static isc_logmodule_t modules[] = { { NULL, 0 } }; +static void +delve_log(int level, const char *fmt, ...) ISC_FORMAT_PRINTF(2, 3); + static void delve_log(int level, const char *fmt, ...) { va_list ap;