summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuss Allbery <eagle@eyrie.org>2015-08-18 19:55:38 -0700
committerRuss Allbery <eagle@eyrie.org>2015-08-18 19:55:38 -0700
commit0bb82d59d7733657c724fb4698153cf8ec304c25 (patch)
tree4f32a12a8935ebab6b0232a260c2579af122ede2
parent31bfa9d722e26e4a8b749533b0349b0b461f62f3 (diff)
Add format attributes recommended by current GCC
-rw-r--r--plugin/error.c3
-rw-r--r--plugin/logging.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/plugin/error.c b/plugin/error.c
index 88ab54a..29ee806 100644
--- a/plugin/error.c
+++ b/plugin/error.c
@@ -5,6 +5,7 @@
* message in the Kerberos context.
*
* Written by Russ Allbery <eagle@eyrie.org>
+ * Copyright 2015 Russ Allbery <eagle@eyrie.org>
* Copyright 2013
* The Board of Trustees of the Leland Stanford Junior University
*
@@ -28,7 +29,7 @@
* set, which is normally the same as the one passed in, but which may change
* if we can't allocate memory.
*/
-static krb5_error_code
+static krb5_error_code __attribute__((__format__(printf, 3, 0)))
set_error(krb5_context ctx, krb5_error_code code, const char *format,
va_list args)
{
diff --git a/plugin/logging.c b/plugin/logging.c
index d95922c..eabe941 100644
--- a/plugin/logging.c
+++ b/plugin/logging.c
@@ -8,6 +8,7 @@
* configuration option is set to false.
*
* Written by Russ Allbery <eagle@eyrie.org>
+ * Copyright 2015 Russ Allbery <eagle@eyrie.org>
* Copyright 2013
* The Board of Trustees of the Leland Stanford Junior University
*
@@ -28,7 +29,7 @@
* message to log, we just do nothing, since these functions are only used for
* supplemental logging.
*/
-static void
+static void __attribute__((__format__(printf, 3, 0)))
log_syslog(kadm5_hook_modinfo *config, int priority, const char *fmt,
va_list args)
{