mirror of
https://github.com/irssi/irssi.git
synced 2024-11-03 04:27:19 -05:00
Fix warnings.
Signed-off-by: Edward Tomasz Napierala <trasz@FreeBSD.org>
This commit is contained in:
parent
1f57ceec4c
commit
939371aa1d
@ -93,7 +93,7 @@ int capsicum_net_connect_ip(IPADDR *ip, int port, IPADDR *my_ip)
|
|||||||
int capsicum_net_gethostbyname(const char *addr, IPADDR *ip4, IPADDR *ip6)
|
int capsicum_net_gethostbyname(const char *addr, IPADDR *ip4, IPADDR *ip6)
|
||||||
{
|
{
|
||||||
nvlist_t *nvl;
|
nvlist_t *nvl;
|
||||||
IPADDR *received_ip4, *received_ip6;
|
const IPADDR *received_ip4, *received_ip6;
|
||||||
int error, ret, saved_errno;
|
int error, ret, saved_errno;
|
||||||
|
|
||||||
/* Send request to the symbiont. */
|
/* Send request to the symbiont. */
|
||||||
@ -130,7 +130,7 @@ int capsicum_net_gethostbyname(const char *addr, IPADDR *ip4, IPADDR *ip6)
|
|||||||
nvlist_t *symbiont_connect(const nvlist_t *request)
|
nvlist_t *symbiont_connect(const nvlist_t *request)
|
||||||
{
|
{
|
||||||
nvlist_t *response;
|
nvlist_t *response;
|
||||||
IPADDR *ip, *my_ip;
|
const IPADDR *ip, *my_ip;
|
||||||
int port, saved_errno, sock;
|
int port, saved_errno, sock;
|
||||||
|
|
||||||
ip = nvlist_get_binary(request, "ip", NULL);
|
ip = nvlist_get_binary(request, "ip", NULL);
|
||||||
|
@ -147,7 +147,7 @@ GIOChannel *net_connect(const char *addr, int port, IPADDR *my_ip)
|
|||||||
return net_connect_ip(ip, port, my_ip);
|
return net_connect_ip(ip, port, my_ip);
|
||||||
}
|
}
|
||||||
|
|
||||||
int net_connect_ip_handle(IPADDR *ip, int port, IPADDR *my_ip)
|
int net_connect_ip_handle(const IPADDR *ip, int port, const IPADDR *my_ip)
|
||||||
{
|
{
|
||||||
union sockaddr_union so;
|
union sockaddr_union so;
|
||||||
int handle, ret, opt = 1;
|
int handle, ret, opt = 1;
|
||||||
|
@ -36,7 +36,7 @@ GIOChannel *g_io_channel_new(int handle);
|
|||||||
/* returns 1 if IPADDRs are the same */
|
/* returns 1 if IPADDRs are the same */
|
||||||
int net_ip_compare(IPADDR *ip1, IPADDR *ip2);
|
int net_ip_compare(IPADDR *ip1, IPADDR *ip2);
|
||||||
|
|
||||||
int net_connect_ip_handle(IPADDR *ip, int port, IPADDR *my_ip);
|
int net_connect_ip_handle(const IPADDR *ip, int port, const IPADDR *my_ip);
|
||||||
|
|
||||||
/* Connect to socket */
|
/* Connect to socket */
|
||||||
GIOChannel *net_connect(const char *addr, int port, IPADDR *my_ip) G_GNUC_DEPRECATED;
|
GIOChannel *net_connect(const char *addr, int port, IPADDR *my_ip) G_GNUC_DEPRECATED;
|
||||||
|
Loading…
Reference in New Issue
Block a user