diff options
author | miod <> | 2014-06-01 11:17:34 +0000 |
---|---|---|
committer | miod <> | 2014-06-01 11:17:34 +0000 |
commit | cfa204ac71b41465595c9237c888f02fd34c65e5 (patch) | |
tree | 0fdf23b688f61ad6c89bcb8a5157639d47416d61 | |
parent | 8bb62fb7da776d7dcb99f1e741d3bc588c7acdbe (diff) | |
download | openbsd-cfa204ac71b41465595c9237c888f02fd34c65e5.tar.gz openbsd-cfa204ac71b41465595c9237c888f02fd34c65e5.tar.bz2 openbsd-cfa204ac71b41465595c9237c888f02fd34c65e5.zip |
Remove __bio_h__attr__ wrapper around __attribute__, since earlier statements
in this file directly use __attribute__.
ok deraadt@
-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 |