diff options
author | beck <> | 2014-05-22 15:37:59 +0000 |
---|---|---|
committer | beck <> | 2014-05-22 15:37:59 +0000 |
commit | cd9711b8bc95d797c6ad15890120d161cedeb3c2 (patch) | |
tree | 964b919249c7b5858077445bda946c2650f93059 /src | |
parent | 47088465eae4e17bc85d800893191f6ab7699c3d (diff) | |
download | openbsd-cd9711b8bc95d797c6ad15890120d161cedeb3c2.tar.gz openbsd-cd9711b8bc95d797c6ad15890120d161cedeb3c2.tar.bz2 openbsd-cd9711b8bc95d797c6ad15890120d161cedeb3c2.zip |
mark BIO_snprintf as deprecated, so warnings will be generated for it's
use. ok miod@ tedu@
Diffstat (limited to 'src')
-rw-r--r-- | src/lib/libcrypto/bio/bio.h | 4 | ||||
-rw-r--r-- | src/lib/libssl/src/crypto/bio/bio.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/libcrypto/bio/bio.h b/src/lib/libcrypto/bio/bio.h index ee0afb1553..ee3c1d5d22 100644 --- a/src/lib/libcrypto/bio/bio.h +++ b/src/lib/libcrypto/bio/bio.h | |||
@@ -759,10 +759,10 @@ BIO_vprintf(BIO *bio, const char *format, va_list args) | |||
759 | __bio_h__attr__((__format__(__printf__, 2, 0))); | 759 | __bio_h__attr__((__format__(__printf__, 2, 0))); |
760 | int | 760 | int |
761 | BIO_snprintf(char *buf, size_t n, const char *format, ...) | 761 | BIO_snprintf(char *buf, size_t n, const char *format, ...) |
762 | __bio_h__attr__((__format__(__printf__, 3, 4))); | 762 | __bio_h__attr__((deprecated, __format__(__printf__, 3, 4))); |
763 | int | 763 | int |
764 | BIO_vsnprintf(char *buf, size_t n, const char *format, va_list args) | 764 | BIO_vsnprintf(char *buf, size_t n, const char *format, va_list args) |
765 | __bio_h__attr__((__format__(__printf__, 3, 0))); | 765 | __bio_h__attr__((deprecated, __format__(__printf__, 3, 0))); |
766 | #undef __bio_h__attr__ | 766 | #undef __bio_h__attr__ |
767 | 767 | ||
768 | /* BEGIN ERROR CODES */ | 768 | /* BEGIN ERROR CODES */ |
diff --git a/src/lib/libssl/src/crypto/bio/bio.h b/src/lib/libssl/src/crypto/bio/bio.h index ee0afb1553..ee3c1d5d22 100644 --- a/src/lib/libssl/src/crypto/bio/bio.h +++ b/src/lib/libssl/src/crypto/bio/bio.h | |||
@@ -759,10 +759,10 @@ BIO_vprintf(BIO *bio, const char *format, va_list args) | |||
759 | __bio_h__attr__((__format__(__printf__, 2, 0))); | 759 | __bio_h__attr__((__format__(__printf__, 2, 0))); |
760 | int | 760 | int |
761 | BIO_snprintf(char *buf, size_t n, const char *format, ...) | 761 | BIO_snprintf(char *buf, size_t n, const char *format, ...) |
762 | __bio_h__attr__((__format__(__printf__, 3, 4))); | 762 | __bio_h__attr__((deprecated, __format__(__printf__, 3, 4))); |
763 | int | 763 | int |
764 | BIO_vsnprintf(char *buf, size_t n, const char *format, va_list args) | 764 | BIO_vsnprintf(char *buf, size_t n, const char *format, va_list args) |
765 | __bio_h__attr__((__format__(__printf__, 3, 0))); | 765 | __bio_h__attr__((deprecated, __format__(__printf__, 3, 0))); |
766 | #undef __bio_h__attr__ | 766 | #undef __bio_h__attr__ |
767 | 767 | ||
768 | /* BEGIN ERROR CODES */ | 768 | /* BEGIN ERROR CODES */ |