summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormiod <>2014-06-01 11:17:34 +0000
committermiod <>2014-06-01 11:17:34 +0000
commitcfa204ac71b41465595c9237c888f02fd34c65e5 (patch)
tree0fdf23b688f61ad6c89bcb8a5157639d47416d61
parent8bb62fb7da776d7dcb99f1e741d3bc588c7acdbe (diff)
downloadopenbsd-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.h14
-rw-r--r--src/lib/libssl/src/crypto/bio/bio.h14
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
741int 736int
742BIO_printf(BIO *bio, const char *format, ...) 737BIO_printf(BIO *bio, const char *format, ...)
743__bio_h__attr__((__format__(__printf__, 2, 3))); 738 __attribute__((__format__(__printf__, 2, 3)));
744int 739int
745BIO_vprintf(BIO *bio, const char *format, va_list args) 740BIO_vprintf(BIO *bio, const char *format, va_list args)
746__bio_h__attr__((__format__(__printf__, 2, 0))); 741 __attribute__((__format__(__printf__, 2, 0)));
747int 742int
748BIO_snprintf(char *buf, size_t n, const char *format, ...) 743BIO_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)));
750int 745int
751BIO_vsnprintf(char *buf, size_t n, const char *format, va_list args) 746BIO_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
741int 736int
742BIO_printf(BIO *bio, const char *format, ...) 737BIO_printf(BIO *bio, const char *format, ...)
743__bio_h__attr__((__format__(__printf__, 2, 3))); 738 __attribute__((__format__(__printf__, 2, 3)));
744int 739int
745BIO_vprintf(BIO *bio, const char *format, va_list args) 740BIO_vprintf(BIO *bio, const char *format, va_list args)
746__bio_h__attr__((__format__(__printf__, 2, 0))); 741 __attribute__((__format__(__printf__, 2, 0)));
747int 742int
748BIO_snprintf(char *buf, size_t n, const char *format, ...) 743BIO_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)));
750int 745int
751BIO_vsnprintf(char *buf, size_t n, const char *format, va_list args) 746BIO_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