]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
add attributes to fatal, warn and delve_log
authorMark Andrews <marka@isc.org>
Tue, 18 Feb 2014 20:25:29 +0000 (07:25 +1100)
committerMark Andrews <marka@isc.org>
Tue, 18 Feb 2014 20:25:29 +0000 (07:25 +1100)
bin/delve/delve.c

index efca9ee3b35e36cdd1fca351299b9173aecd9e35..44e8fca0ac245e0225775555dd36ae5efacd60e6 100644 (file)
@@ -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;