diff options
author | Richard Levitte <levitte@openssl.org> | 2003-04-03 23:06:05 +0000 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2003-04-03 23:06:05 +0000 |
commit | 68b42986cb47be2bb22c05a5c44584e749599616 (patch) | |
tree | 91346d9492c6b52489d57fb670a983ab855beada /crypto/bio/bio.h | |
parent | 57544ee2248a2f9d976844fe8eaaf404d4d70f1a (diff) |
Add GCC attributes when compiled with gcc. This helps find out if
we're using the printing functions correctly or not.
I used the corresponding attributes found in the header files of my
Linux installation.
Diffstat (limited to 'crypto/bio/bio.h')
-rw-r--r-- | crypto/bio/bio.h | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/crypto/bio/bio.h b/crypto/bio/bio.h index ce8b19ce2e..e8bb8aa4de 100644 --- a/crypto/bio/bio.h +++ b/crypto/bio/bio.h @@ -612,10 +612,17 @@ void BIO_copy_next_retry(BIO *b); /*long BIO_ghbn_ctrl(int cmd,int iarg,char *parg);*/ -int BIO_printf(BIO *bio, const char *format, ...); -int BIO_vprintf(BIO *bio, const char *format, va_list args); -int BIO_snprintf(char *buf, size_t n, const char *format, ...); -int BIO_vsnprintf(char *buf, size_t n, const char *format, va_list args); +#ifndef __GNUC__ +#define __attribute__(x) +#endif +int BIO_printf(BIO *bio, const char *format, ...) + __attribute__((__format__(__printf__,2,3))); +int BIO_vprintf(BIO *bio, const char *format, va_list args) + __attribute__((__format__(__printf__,2,0))); +int BIO_snprintf(char *buf, size_t n, const char *format, ...) + __attribute__((__format__(__printf__,3,4))); +int BIO_vsnprintf(char *buf, size_t n, const char *format, va_list args) + __attribute__((__format__(__printf__,3,0))); /* BEGIN ERROR CODES */ /* The following lines are auto generated by the script mkerr.pl. Any changes |