diff options
| author | miod <> | 2014-06-01 11:17:34 +0000 |
|---|---|---|
| committer | miod <> | 2014-06-01 11:17:34 +0000 |
| commit | 14e8975850ef5082517c85a1744c3440f6202c23 (patch) | |
| tree | 0fdf23b688f61ad6c89bcb8a5157639d47416d61 | |
| parent | 0f28597bbd77529fe4af16629b17d22f18c076bb (diff) | |
| download | openbsd-14e8975850ef5082517c85a1744c3440f6202c23.tar.gz openbsd-14e8975850ef5082517c85a1744c3440f6202c23.tar.bz2 openbsd-14e8975850ef5082517c85a1744c3440f6202c23.zip | |
Remove __bio_h__attr__ wrapper around __attribute__, since earlier statements
in this file directly use __attribute__.
ok deraadt@
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libcrypto/bio/bio.h | 14 | ||||
| -rw-r--r-- | src/lib/libssl/src/crypto/bio/bio.h | 14 |
2 files changed, 8 insertions, 20 deletions
diff --git a/src/lib/libcrypto/bio/bio.h b/src/lib/libcrypto/bio/bio.h index 43562d4872..f5d6e585bf 100644 --- a/src/lib/libcrypto/bio/bio.h +++ b/src/lib/libcrypto/bio/bio.h | |||
| @@ -733,24 +733,18 @@ void BIO_copy_next_retry(BIO *b); | |||
| 733 | 733 | ||
| 734 | /*long BIO_ghbn_ctrl(int cmd,int iarg,char *parg);*/ | 734 | /*long BIO_ghbn_ctrl(int cmd,int iarg,char *parg);*/ |
| 735 | 735 | ||
| 736 | #ifdef __GNUC__ | ||
| 737 | # define __bio_h__attr__ __attribute__ | ||
| 738 | #else | ||
| 739 | # define __bio_h__attr__(x) | ||
| 740 | #endif | ||
| 741 | int | 736 | int |
| 742 | BIO_printf(BIO *bio, const char *format, ...) | 737 | BIO_printf(BIO *bio, const char *format, ...) |
| 743 | __bio_h__attr__((__format__(__printf__, 2, 3))); | 738 | __attribute__((__format__(__printf__, 2, 3))); |
| 744 | int | 739 | int |
| 745 | BIO_vprintf(BIO *bio, const char *format, va_list args) | 740 | BIO_vprintf(BIO *bio, const char *format, va_list args) |
| 746 | __bio_h__attr__((__format__(__printf__, 2, 0))); | 741 | __attribute__((__format__(__printf__, 2, 0))); |
| 747 | int | 742 | int |
| 748 | BIO_snprintf(char *buf, size_t n, const char *format, ...) | 743 | BIO_snprintf(char *buf, size_t n, const char *format, ...) |
| 749 | __bio_h__attr__((deprecated, __format__(__printf__, 3, 4))); | 744 | __attribute__((deprecated, __format__(__printf__, 3, 4))); |
| 750 | int | 745 | int |
| 751 | BIO_vsnprintf(char *buf, size_t n, const char *format, va_list args) | 746 | BIO_vsnprintf(char *buf, size_t n, const char *format, va_list args) |
| 752 | __bio_h__attr__((deprecated, __format__(__printf__, 3, 0))); | 747 | __attribute__((deprecated, __format__(__printf__, 3, 0))); |
| 753 | #undef __bio_h__attr__ | ||
| 754 | 748 | ||
| 755 | /* BEGIN ERROR CODES */ | 749 | /* BEGIN ERROR CODES */ |
| 756 | /* The following lines are auto generated by the script mkerr.pl. Any changes | 750 | /* The following lines are auto generated by the script mkerr.pl. Any changes |
diff --git a/src/lib/libssl/src/crypto/bio/bio.h b/src/lib/libssl/src/crypto/bio/bio.h index 43562d4872..f5d6e585bf 100644 --- a/src/lib/libssl/src/crypto/bio/bio.h +++ b/src/lib/libssl/src/crypto/bio/bio.h | |||
| @@ -733,24 +733,18 @@ void BIO_copy_next_retry(BIO *b); | |||
| 733 | 733 | ||
| 734 | /*long BIO_ghbn_ctrl(int cmd,int iarg,char *parg);*/ | 734 | /*long BIO_ghbn_ctrl(int cmd,int iarg,char *parg);*/ |
| 735 | 735 | ||
| 736 | #ifdef __GNUC__ | ||
| 737 | # define __bio_h__attr__ __attribute__ | ||
| 738 | #else | ||
| 739 | # define __bio_h__attr__(x) | ||
| 740 | #endif | ||
| 741 | int | 736 | int |
| 742 | BIO_printf(BIO *bio, const char *format, ...) | 737 | BIO_printf(BIO *bio, const char *format, ...) |
| 743 | __bio_h__attr__((__format__(__printf__, 2, 3))); | 738 | __attribute__((__format__(__printf__, 2, 3))); |
| 744 | int | 739 | int |
| 745 | BIO_vprintf(BIO *bio, const char *format, va_list args) | 740 | BIO_vprintf(BIO *bio, const char *format, va_list args) |
| 746 | __bio_h__attr__((__format__(__printf__, 2, 0))); | 741 | __attribute__((__format__(__printf__, 2, 0))); |
| 747 | int | 742 | int |
| 748 | BIO_snprintf(char *buf, size_t n, const char *format, ...) | 743 | BIO_snprintf(char *buf, size_t n, const char *format, ...) |
| 749 | __bio_h__attr__((deprecated, __format__(__printf__, 3, 4))); | 744 | __attribute__((deprecated, __format__(__printf__, 3, 4))); |
| 750 | int | 745 | int |
| 751 | BIO_vsnprintf(char *buf, size_t n, const char *format, va_list args) | 746 | BIO_vsnprintf(char *buf, size_t n, const char *format, va_list args) |
| 752 | __bio_h__attr__((deprecated, __format__(__printf__, 3, 0))); | 747 | __attribute__((deprecated, __format__(__printf__, 3, 0))); |
| 753 | #undef __bio_h__attr__ | ||
| 754 | 748 | ||
| 755 | /* BEGIN ERROR CODES */ | 749 | /* BEGIN ERROR CODES */ |
| 756 | /* The following lines are auto generated by the script mkerr.pl. Any changes | 750 | /* The following lines are auto generated by the script mkerr.pl. Any changes |
