mirror of
https://github.com/irssi/irssi.git
synced 2024-09-08 04:26:01 -04:00
Remove unused variable.
git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@5028 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
4f3b7696a0
commit
1d9db4db9a
@ -127,11 +127,9 @@ static int sin_get_port(union sockaddr_union *so)
|
|||||||
GIOChannel *net_connect(const char *addr, int port, IPADDR *my_ip)
|
GIOChannel *net_connect(const char *addr, int port, IPADDR *my_ip)
|
||||||
{
|
{
|
||||||
IPADDR ip4, ip6, *ip;
|
IPADDR ip4, ip6, *ip;
|
||||||
int family;
|
|
||||||
|
|
||||||
g_return_val_if_fail(addr != NULL, NULL);
|
g_return_val_if_fail(addr != NULL, NULL);
|
||||||
|
|
||||||
family = my_ip == NULL ? 0 : my_ip->family;
|
|
||||||
if (net_gethostbyname(addr, &ip4, &ip6) == -1)
|
if (net_gethostbyname(addr, &ip4, &ip6) == -1)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user