diff options
author | Ben Laurie <ben@openssl.org> | 1999-04-17 21:25:43 +0000 |
---|---|---|
committer | Ben Laurie <ben@openssl.org> | 1999-04-17 21:25:43 +0000 |
commit | e778802f53c8d47e96a6e4cbc776eb6e1d4c461a (patch) | |
tree | 719d4dd0fc69b355c6d8329af1f90b2c4f603548 /crypto/bio/b_sock.c | |
parent | d77b3054cd87c2b13fa0169931f74b8e0dac5252 (diff) | |
download | openssl-e778802f53c8d47e96a6e4cbc776eb6e1d4c461a.tar.gz |
Massive constification.
Diffstat (limited to 'crypto/bio/b_sock.c')
-rw-r--r-- | crypto/bio/b_sock.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/crypto/bio/b_sock.c b/crypto/bio/b_sock.c index f96cb60019..a1a37605e3 100644 --- a/crypto/bio/b_sock.c +++ b/crypto/bio/b_sock.c @@ -97,7 +97,7 @@ static struct ghbn_cache_st } ghbn_cache[GHBN_NUM]; #ifndef NOPROTO -static int get_ip(char *str,unsigned char *ip); +static int get_ip(const char *str,unsigned char *ip); static void ghbn_free(struct hostent *a); static struct hostent *ghbn_dup(struct hostent *a); #else @@ -107,7 +107,7 @@ static struct hostent *ghbn_dup(); #endif int BIO_get_host_ip(str,ip) -char *str; +const char *str; unsigned char *ip; { int i; @@ -147,7 +147,7 @@ unsigned char *ip; } int BIO_get_port(str,port_ptr) -char *str; +const char *str; unsigned short *port_ptr; { int i; @@ -330,7 +330,7 @@ struct hostent *a; } struct hostent *BIO_gethostbyname(name) -char *name; +const char *name; { struct hostent *ret; int i,lowi=0,j; @@ -439,7 +439,7 @@ unsigned long *arg; /* The reason I have implemented this instead of using sscanf is because * Visual C 1.52c gives an unresolved external when linking a DLL :-( */ static int get_ip(str,ip) -char *str; +const char *str; unsigned char ip[4]; { unsigned int tmp[4]; @@ -484,7 +484,8 @@ int bind_mode; int s= -1,cs; unsigned char ip[4]; unsigned short port; - char *str,*h,*p,*e; + char *str,*e; + const char *h,*p; unsigned long l; int err_num; |