From 65154f78d1ad640ee4748a023af4f6a504633be9 Mon Sep 17 00:00:00 2001 From: beck Date: Thu, 22 May 2014 15:37:59 +0000 Subject: [PATCH] mark BIO_snprintf as deprecated, so warnings will be generated for it's use. ok miod@ tedu@ --- lib/libcrypto/bio/bio.h | 4 ++-- lib/libssl/src/crypto/bio/bio.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/libcrypto/bio/bio.h b/lib/libcrypto/bio/bio.h index ee0afb15533..ee3c1d5d225 100644 --- a/lib/libcrypto/bio/bio.h +++ b/lib/libcrypto/bio/bio.h @@ -759,10 +759,10 @@ BIO_vprintf(BIO *bio, const char *format, va_list args) __bio_h__attr__((__format__(__printf__, 2, 0))); int BIO_snprintf(char *buf, size_t n, const char *format, ...) -__bio_h__attr__((__format__(__printf__, 3, 4))); +__bio_h__attr__((deprecated, __format__(__printf__, 3, 4))); int BIO_vsnprintf(char *buf, size_t n, const char *format, va_list args) -__bio_h__attr__((__format__(__printf__, 3, 0))); +__bio_h__attr__((deprecated, __format__(__printf__, 3, 0))); #undef __bio_h__attr__ /* BEGIN ERROR CODES */ diff --git a/lib/libssl/src/crypto/bio/bio.h b/lib/libssl/src/crypto/bio/bio.h index ee0afb15533..ee3c1d5d225 100644 --- a/lib/libssl/src/crypto/bio/bio.h +++ b/lib/libssl/src/crypto/bio/bio.h @@ -759,10 +759,10 @@ BIO_vprintf(BIO *bio, const char *format, va_list args) __bio_h__attr__((__format__(__printf__, 2, 0))); int BIO_snprintf(char *buf, size_t n, const char *format, ...) -__bio_h__attr__((__format__(__printf__, 3, 4))); +__bio_h__attr__((deprecated, __format__(__printf__, 3, 4))); int BIO_vsnprintf(char *buf, size_t n, const char *format, va_list args) -__bio_h__attr__((__format__(__printf__, 3, 0))); +__bio_h__attr__((deprecated, __format__(__printf__, 3, 0))); #undef __bio_h__attr__ /* BEGIN ERROR CODES */ -- 2.20.1