summaryrefslogtreecommitdiff
path: root/p11-kit/private.h
diff options
context:
space:
mode:
authorStef Walter <stefw@gnome.org>2012-05-13 14:03:17 +0200
committerStef Walter <stefw@gnome.org>2012-05-13 14:03:17 +0200
commit7bd4114182fcc86cd2515708fdf4d76622e0237d (patch)
tree5efb237c364a4a2259a747ae0edfcad6b5e45e40 /p11-kit/private.h
parent14b0be4353e5c4464cb9f61e419a2f8caf8757d0 (diff)
downloadp11-kit-7bd4114182fcc86cd2515708fdf4d76622e0237d.tar.gz
Use gcc extensions to check varargs during compile
* Add macros GNUC_PRINTF and GNUC_NULL_TERMINATED to check correct printf and NULL terminated style varargs
Diffstat (limited to 'p11-kit/private.h')
-rw-r--r--p11-kit/private.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/p11-kit/private.h b/p11-kit/private.h
index da9fbae..f2cd181 100644
--- a/p11-kit/private.h
+++ b/p11-kit/private.h
@@ -35,6 +35,7 @@
#ifndef __P11_KIT_PRIVATE_H__
#define __P11_KIT_PRIVATE_H__
+#include "compat.h"
#include "pkcs11.h"
#include "util.h"
@@ -53,7 +54,8 @@ typedef struct {
#define _p11_unlock() _p11_mutex_unlock (&_p11_mutex);
-void _p11_message (const char* msg, ...);
+void _p11_message (const char* msg,
+ ...) GNUC_PRINTF (1, 2);
p11_local * _p11_library_get_thread_local (void);