projects
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
e30dd20
)
Stop warnings in gcc where "a" is const passed as a non-const argument.
author
Dr. Stephen Henson
<steve@openssl.org>
Thu, 25 Jun 2009 17:10:44 +0000
(17:10 +0000)
committer
Dr. Stephen Henson
<steve@openssl.org>
Thu, 25 Jun 2009 17:10:44 +0000
(17:10 +0000)
crypto/bio/bio.h
patch
|
blob
|
history
diff --git
a/crypto/bio/bio.h
b/crypto/bio/bio.h
index ab5d5c0923d144aebf8391d9a6eb9412434debf9..1c7173c38a9e55e2b67410cb682d6396e1edf197 100644
(file)
--- a/
crypto/bio/bio.h
+++ b/
crypto/bio/bio.h
@@
-411,7
+411,7
@@
typedef int asn1_ps_func(BIO *b, unsigned char **pbuf, int *plen, void *parg);
#define BIO_set_accept_port(b,name) BIO_ctrl(b,BIO_C_SET_ACCEPT,0,(char *)name)
#define BIO_get_accept_port(b) BIO_ptr_ctrl(b,BIO_C_GET_ACCEPT,0)
/* #define BIO_set_nbio(b,n) BIO_ctrl(b,BIO_C_SET_NBIO,(n),NULL) */
#define BIO_set_accept_port(b,name) BIO_ctrl(b,BIO_C_SET_ACCEPT,0,(char *)name)
#define BIO_get_accept_port(b) BIO_ptr_ctrl(b,BIO_C_GET_ACCEPT,0)
/* #define BIO_set_nbio(b,n) BIO_ctrl(b,BIO_C_SET_NBIO,(n),NULL) */
-#define BIO_set_nbio_accept(b,n) BIO_ctrl(b,BIO_C_SET_ACCEPT,1,(n)?"a":NULL)
+#define BIO_set_nbio_accept(b,n) BIO_ctrl(b,BIO_C_SET_ACCEPT,1,(n)?
(void *)
"a":NULL)
#define BIO_set_accept_bios(b,bio) BIO_ctrl(b,BIO_C_SET_ACCEPT,2,(char *)bio)
#define BIO_BIND_NORMAL 0
#define BIO_set_accept_bios(b,bio) BIO_ctrl(b,BIO_C_SET_ACCEPT,2,(char *)bio)
#define BIO_BIND_NORMAL 0