Change kpropd_com_err_proc to prototype style, add format attribute
authorKen Raeburn <raeburn@mit.edu>
Tue, 30 Dec 2008 05:45:06 +0000 (05:45 +0000)
committerKen Raeburn <raeburn@mit.edu>
Tue, 30 Dec 2008 05:45:06 +0000 (05:45 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@21637 dc483132-0cff-0310-8789-dd5450dbe970

src/slave/kpropd.c

index 69b50c32ea55a5aa4d79a5525481d3b6f7c186da..ba63d5847d0bcd0ff8dfd5517827113cc95e301a 100644 (file)
@@ -987,11 +987,20 @@ unsigned int backoff_from_master(int *cnt) {
 }
 
 static void
-kpropd_com_err_proc(whoami, code, fmt, args)
-       const char      *whoami;
-       long            code;
-       const char      *fmt;
-       va_list         args;
+kpropd_com_err_proc(const char *whoami,
+                   long code,
+                   const char *fmt,
+                   va_list args)
+#if !defined(__cplusplus) && (__GNUC__ > 2)
+    __attribute__((__format__(__printf__, 3, 0)))
+#endif
+    ;
+
+static void
+kpropd_com_err_proc(const char *whoami,
+                   long code,
+                   const char *fmt,
+                   va_list args)
 {
        char    error_buf[8096];