diff options
author | Richard Levitte <levitte@openssl.org> | 2000-01-17 01:07:36 +0000 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2000-01-17 01:07:36 +0000 |
commit | 7256ce6a8c9d07c1b54a8dfb5affd74a29e4ea56 (patch) | |
tree | 860bf8b8a2ab2b5dae0742a1d919c52999f26ae6 /crypto/bio | |
parent | fb8d5a16a35f32073faa7e086ca05cc01dea6fcd (diff) |
SOCKETSHR is showing bad declarations again. However, a simple cast
which does no harm fixes that problem.
Diffstat (limited to 'crypto/bio')
-rw-r--r-- | crypto/bio/b_sock.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/crypto/bio/b_sock.c b/crypto/bio/b_sock.c index 561d166004..dce0c0390b 100644 --- a/crypto/bio/b_sock.c +++ b/crypto/bio/b_sock.c @@ -163,7 +163,10 @@ int BIO_get_port(const char *str, unsigned short *port_ptr) else { CRYPTO_w_lock(CRYPTO_LOCK_GETSERVBYNAME); - s=getservbyname(str,"tcp"); + /* Note: under VMS with SOCKETSHR, it seems like the first + * parameter is 'char *', instead of 'const char *' + */ + s=getservbyname((char *)str,"tcp"); if(s != NULL) *port_ptr=ntohs((unsigned short)s->s_port); CRYPTO_w_unlock(CRYPTO_LOCK_GETSERVBYNAME); @@ -368,7 +371,10 @@ struct hostent *BIO_gethostbyname(const char *name) if (i == GHBN_NUM) /* no hit*/ { BIO_ghbn_miss++; - ret=gethostbyname(name); + /* Note: under VMS with SOCKETSHR, it seems like the first + * parameter is 'char *', instead of 'const char *' + */ + ret=gethostbyname((char *)name); if (ret == NULL) goto end; |