From e371cb1bb3ea360e293a1de8978547925f0fdb65 Mon Sep 17 00:00:00 2001 From: joerg Date: Mon, 6 Jan 2014 21:12:19 +0000 Subject: [PATCH] Add __printflike where necessary. --- crypto/external/bsd/netpgp/dist/src/lib/errors.h | 2 +- crypto/external/bsd/netpgp/dist/src/lib/netpgpsdk.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crypto/external/bsd/netpgp/dist/src/lib/errors.h b/crypto/external/bsd/netpgp/dist/src/lib/errors.h index 9ec55004c1bd..52fa557875ef 100644 --- a/crypto/external/bsd/netpgp/dist/src/lib/errors.h +++ b/crypto/external/bsd/netpgp/dist/src/lib/errors.h @@ -135,7 +135,7 @@ const char *pgp_errcode(const pgp_errcode_t); void pgp_push_error(pgp_error_t **, pgp_errcode_t, int, - const char *, int, const char *,...); + const char *, int, const char *,...) __printflike(6, 7); void pgp_print_error(pgp_error_t *); void pgp_print_errors(pgp_error_t *); void pgp_free_errors(pgp_error_t *); diff --git a/crypto/external/bsd/netpgp/dist/src/lib/netpgpsdk.h b/crypto/external/bsd/netpgp/dist/src/lib/netpgpsdk.h index 00dcf482bf83..e2ab9f16b4b7 100644 --- a/crypto/external/bsd/netpgp/dist/src/lib/netpgpsdk.h +++ b/crypto/external/bsd/netpgp/dist/src/lib/netpgpsdk.h @@ -63,9 +63,9 @@ unsigned pgp_check_sig(const uint8_t *, const char *pgp_get_info(const char *type); -int pgp_asprintf(char **, const char *, ...); +int pgp_asprintf(char **, const char *, ...) __printflike(2, 3); -void netpgp_log(const char *, ...); +void netpgp_log(const char *, ...) __printflike(1, 2); int netpgp_strcasecmp(const char *, const char *); char *netpgp_strdup(const char *);