forked from PsychoticNinja/irssi
Change coding style
This commit is contained in:
parent
a35e5b4f9d
commit
714b0241cb
@ -551,7 +551,7 @@ static GIOChannel *irssi_ssl_get_iochannel(GIOChannel *handle, int port, SERVER_
|
||||
|
||||
return gchan;
|
||||
}
|
||||
GIOChannel *net_connect_proxy_ssl(struct network_proxy const *proxy, char const *host, int port,
|
||||
GIOChannel *net_connect_proxy_ssl(const struct network_proxy *proxy, const char *host, int port,
|
||||
IPADDR *ip, IPADDR *my_ip, SERVER_REC *server)
|
||||
{
|
||||
GIOChannel *handle, *ssl_handle;
|
||||
|
@ -228,8 +228,8 @@ GIOChannel *net_connect_ip(IPADDR *ip, int port, IPADDR *my_ip)
|
||||
}
|
||||
|
||||
/* Connect to socket */
|
||||
GIOChannel *net_connect_proxy(struct network_proxy const *proxy,
|
||||
char const *host, int port, IPADDR *ip, IPADDR *my_ip)
|
||||
GIOChannel *net_connect_proxy(const struct network_proxy *proxy,
|
||||
const char *host, int port, IPADDR *ip, IPADDR *my_ip)
|
||||
{
|
||||
if (proxy)
|
||||
return proxy->connect(proxy, ip, host, port);
|
||||
|
@ -50,12 +50,12 @@ int net_ip_compare(IPADDR *ip1, IPADDR *ip2);
|
||||
/* Connect to socket */
|
||||
GIOChannel *net_connect(const char *addr, int port, IPADDR *my_ip);
|
||||
/* Connect to socket with ip address and SSL*/
|
||||
GIOChannel *net_connect_proxy_ssl(struct network_proxy const *proxy, char const *host, int port,
|
||||
GIOChannel *net_connect_proxy_ssl(const struct network_proxy *proxy, const char c*host, int port,
|
||||
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_proxy(struct network_proxy const *proxy, char const *host, int port,
|
||||
GIOChannel *net_connect_proxy(const struct network_proxy *proxy, const char *host, int port,
|
||||
IPADDR *ip, IPADDR *my_ip);
|
||||
/* Connect to named UNIX socket */
|
||||
GIOChannel *net_connect_unix(const char *path);
|
||||
|
@ -196,7 +196,7 @@ static void server_init(IRC_SERVER_REC *server)
|
||||
IRC_SERVER_CONNECT_REC *conn;
|
||||
char *address, *ptr, *username, *cmd;
|
||||
GTimeVal now;
|
||||
struct network_proxy_send_string_info const send_info = {
|
||||
const struct network_proxy_send_string_info send_info = {
|
||||
.host = server->connrec->address,
|
||||
.port = server->connrec->port,
|
||||
.func = irc_send_cmd_now_wrapper,
|
||||
|
@ -109,7 +109,6 @@ struct _IRC_SERVER_REC {
|
||||
SERVER_REC *irc_server_init_connect(SERVER_CONNECT_REC *conn);
|
||||
void irc_server_connect(SERVER_REC *server);
|
||||
|
||||
|
||||
/* Purge server output, either all or for specified target */
|
||||
void irc_server_purge_output(IRC_SERVER_REC *server, const char *target);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user