summaryrefslogtreecommitdiffstats
path: root/apps/s_socket.c
diff options
context:
space:
mode:
authorBen Laurie <ben@openssl.org>2011-01-09 17:50:18 +0000
committerBen Laurie <ben@openssl.org>2011-01-09 17:50:18 +0000
commit105d62cbf11a27bb01a96c34f8b4d08a15652ca7 (patch)
tree744edd5d260e6908622a5dcfe162e7b0ad1b5cf0 /apps/s_socket.c
parentc13d7c02968c17a7c5eb8dca1ace6a916be0de3a (diff)
Constify.
Diffstat (limited to 'apps/s_socket.c')
-rw-r--r--apps/s_socket.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/s_socket.c b/apps/s_socket.c
index 5747475399..2fff09f850 100644
--- a/apps/s_socket.c
+++ b/apps/s_socket.c
@@ -96,7 +96,8 @@ static struct hostent *GetHostByName(char *name);
static void ssl_sock_cleanup(void);
#endif
static int ssl_sock_init(void);
-static int init_client_ip(int *sock,unsigned char ip[4], int port, int type);
+static int init_client_ip(int *sock, const unsigned char ip[4], int port,
+ int type);
static int init_server(int *sock, int port, int type);
static int init_server_long(int *sock, int port,char *ip, int type);
static int do_accept(int acc_sock, int *sock, char **host);
@@ -239,7 +240,8 @@ int init_client(int *sock, char *host, int port, int type)
return(init_client_ip(sock,ip,port,type));
}
-static int init_client_ip(int *sock, unsigned char ip[4], int port, int type)
+static int init_client_ip(int *sock, const unsigned char ip[4], int port,
+ int type)
{
unsigned long addr;
struct sockaddr_in them;