chiark / gitweb /
fix compile warnings/errors
[innduct.git] / innduct.h
index 231524d04b0fdaaa54d5687fe10d474a66f71904..d82033a5b5ec7ae9809a4973417ace1dc5f29e51 100644 (file)
--- a/innduct.h
+++ b/innduct.h
@@ -322,7 +322,7 @@ void info(const char *fmt, ...) PRINTF(1,2);
 void dbg(const char *fmt, ...) PRINTF(1,2);
 
 void logv(int sysloglevel, const char *pfx, int errnoval,
-         const char *fmt, va_list al) PRINTF(5,0);
+         const char *fmt, va_list al) PRINTF(4,0);
 
 char *mvasprintf(const char *fmt, va_list al) PRINTF(1,0);
 char *masprintf(const char *fmt, ...) PRINTF(1,2);
@@ -372,7 +372,7 @@ static inline int isewouldblock(int errnoval) {
   INNLOGSET(debug,    "debug",    LOG_DEBUG)
 #define INNLOGSET_DECLARE(fn, pfx, sysloglevel)                                \
   void duct_log_##fn(int l, const char *fmt, va_list al, int errval)   \
-    PRINTF(3,0);
+    PRINTF(2,0);
 INNLOGSETS(INNLOGSET_DECLARE)
 
 /*----- duct.c -----*/