aboutsummaryrefslogtreecommitdiffstats
path: root/common/audit.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2015-07-26 10:50:16 +0000
committerWerner Koch <[email protected]>2015-07-26 10:50:24 +0000
commitd382242fb6789973ce8d246ec154a4a1468c24c0 (patch)
tree3809b220992ea4e49942a3dec3d7a2f5e96738f6 /common/audit.c
parentscd: support any curves defined by libgcrypt. (diff)
downloadgnupg-d382242fb6789973ce8d246ec154a4a1468c24c0.tar.gz
gnupg-d382242fb6789973ce8d246ec154a4a1468c24c0.zip
Replace GNUPG_GCC_A_ macros by GPGRT_ATTR_ macros.
* common/util.h: Provide replacement for GPGRT_ATTR_ macros when using libgpg-error < 1.20. * common/mischelp.h: Ditto. * common/types.h: Ditto. -- Given that libgpg-error is a dependency of all GnuPG related libraries it is better to define such macros at only one place instead of having similar macros at a lot of places. For now we need repalcement macros, though.
Diffstat (limited to 'common/audit.c')
-rw-r--r--common/audit.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/common/audit.c b/common/audit.c
index 9ed5708de..198b8e633 100644
--- a/common/audit.c
+++ b/common/audit.c
@@ -72,11 +72,11 @@ struct audit_ctx_s
static void writeout_para (audit_ctx_t ctx,
- const char *format, ...) GPGRT_GCC_A_PRINTF(2,3);
+ const char *format, ...) GPGRT_ATTR_PRINTF(2,3);
static void writeout_li (audit_ctx_t ctx, const char *oktext,
- const char *format, ...) GPGRT_GCC_A_PRINTF(3,4);
+ const char *format, ...) GPGRT_ATTR_PRINTF(3,4);
static void writeout_rem (audit_ctx_t ctx,
- const char *format, ...) GPGRT_GCC_A_PRINTF(2,3);
+ const char *format, ...) GPGRT_ATTR_PRINTF(2,3);
/* Add NAME to the list of help tags. NAME needs to be a const string