mirror of
https://github.com/irssi/irssi.git
synced 2024-12-04 14:46:39 -05:00
Keep unused parameter for API compatibility
This commit is contained in:
parent
7e6d24420c
commit
d84f285b91
@ -27,12 +27,14 @@
|
|||||||
|
|
||||||
/* nonblocking gethostbyname(), ip (IPADDR) + error (int, 0 = not error) is
|
/* nonblocking gethostbyname(), ip (IPADDR) + error (int, 0 = not error) is
|
||||||
written to pipe when found PID of the resolver child is returned */
|
written to pipe when found PID of the resolver child is returned */
|
||||||
int net_gethostbyname_nonblock(const char *addr, GIOChannel *pipe)
|
int net_gethostbyname_nonblock(const char *addr, GIOChannel *pipe, int reverse_lookup)
|
||||||
{
|
{
|
||||||
RESOLVED_IP_REC rec;
|
RESOLVED_IP_REC rec;
|
||||||
const char *errorstr;
|
const char *errorstr;
|
||||||
int pid;
|
int pid;
|
||||||
|
|
||||||
|
(void) reverse_lookup; /* Kept for API backward compatibility */
|
||||||
|
|
||||||
g_return_val_if_fail(addr != NULL, FALSE);
|
g_return_val_if_fail(addr != NULL, FALSE);
|
||||||
|
|
||||||
pid = fork();
|
pid = fork();
|
||||||
|
@ -12,7 +12,7 @@ typedef struct {
|
|||||||
} RESOLVED_IP_REC;
|
} RESOLVED_IP_REC;
|
||||||
|
|
||||||
/* nonblocking gethostbyname(), PID of the resolver child is returned. */
|
/* nonblocking gethostbyname(), PID of the resolver child is returned. */
|
||||||
int net_gethostbyname_nonblock(const char *addr, GIOChannel *pipe);
|
int net_gethostbyname_nonblock(const char *addr, GIOChannel *pipe, int reverse_lookup);
|
||||||
/* get the resolved IP address. returns -1 if some error occurred with read() */
|
/* get the resolved IP address. returns -1 if some error occurred with read() */
|
||||||
int net_gethostbyname_return(GIOChannel *pipe, RESOLVED_IP_REC *rec);
|
int net_gethostbyname_return(GIOChannel *pipe, RESOLVED_IP_REC *rec);
|
||||||
|
|
||||||
|
@ -407,7 +407,7 @@ int server_start_connect(SERVER_REC *server)
|
|||||||
server->connrec->proxy : server->connrec->address;
|
server->connrec->proxy : server->connrec->address;
|
||||||
server->connect_pid =
|
server->connect_pid =
|
||||||
net_gethostbyname_nonblock(connect_address,
|
net_gethostbyname_nonblock(connect_address,
|
||||||
server->connect_pipe[1]);
|
server->connect_pipe[1], 0);
|
||||||
server->connect_tag =
|
server->connect_tag =
|
||||||
g_input_add(server->connect_pipe[0], G_INPUT_READ,
|
g_input_add(server->connect_pipe[0], G_INPUT_READ,
|
||||||
(GInputFunction)
|
(GInputFunction)
|
||||||
|
Loading…
Reference in New Issue
Block a user