From 67d343fd3ad48a3096003350c4b715009616845a Mon Sep 17 00:00:00 2001 From: hawken93 Date: Sat, 4 Oct 2014 01:14:19 +0200 Subject: [PATCH] Fix compile warnings --- src/core/network.c | 2 +- src/core/network.h | 2 +- src/core/servers.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core/network.c b/src/core/network.c index 34319c58..2969902a 100644 --- a/src/core/network.c +++ b/src/core/network.c @@ -170,7 +170,7 @@ GIOChannel *net_connect(const char *addr, int port, IPADDR *my_ip) } /* Connect to socket with ip address */ -GIOChannel *net_connect_ip(IPADDR *ip, int port, IPADDR *my_ip) +GIOChannel *net_connect_ip(const IPADDR *ip, int port, IPADDR *my_ip) { union sockaddr_union so; int handle, ret, opt = 1; diff --git a/src/core/network.h b/src/core/network.h index 048ff71b..0cdaaf1f 100644 --- a/src/core/network.h +++ b/src/core/network.h @@ -54,7 +54,7 @@ GIOChannel *net_connect_proxy_ssl(const struct network_proxy *proxy, const char IPADDR *ip, IPADDR *my_ip, SERVER_REC *server); int irssi_ssl_handshake(GIOChannel *handle); /* Connect to socket with ip address */ -GIOChannel *net_connect_ip(IPADDR *ip, int port, IPADDR *my_ip); +GIOChannel *net_connect_ip(const IPADDR *ip, int port, IPADDR *my_ip); GIOChannel *net_connect_proxy(const struct network_proxy *proxy, const char *host, int port, IPADDR *ip, IPADDR *my_ip); /* Connect to named UNIX socket */ diff --git a/src/core/servers.c b/src/core/servers.c index c8b002bf..3abd96bc 100644 --- a/src/core/servers.c +++ b/src/core/servers.c @@ -227,7 +227,7 @@ static void server_real_connect(SERVER_REC *server, IPADDR *ip, net_connect_proxy_ssl(server->connrec->proxy, server->connrec->address, port, ip, own_ip, - server->connrec) : + server) : net_connect_proxy(server->connrec->proxy, server->connrec->address, port, ip, own_ip);