mirror of
https://github.com/irssi/irssi.git
synced 2025-02-02 15:08:01 -05:00
Removed casts in g_free(), therefore also removed some const declarations
This commit is contained in:
parent
67d343fd3a
commit
c2505203d0
@ -31,7 +31,7 @@ static void network_proxy_http_destroy(struct network_proxy *proxy)
|
||||
{
|
||||
struct _network_proxy_http *self = container_of(proxy, struct _network_proxy_http, proxy);
|
||||
|
||||
g_free((void *)self->password);
|
||||
g_free(self->password);
|
||||
_network_proxy_destroy(proxy);
|
||||
|
||||
g_free(self);
|
||||
|
@ -5,7 +5,7 @@
|
||||
|
||||
struct _network_proxy_http {
|
||||
struct network_proxy proxy;
|
||||
const char *password;
|
||||
char *password;
|
||||
};
|
||||
|
||||
struct network_proxy *_network_proxy_http_create(void);
|
||||
|
@ -28,7 +28,7 @@ inline static void _network_proxy_clone(struct network_proxy *dst, const struct
|
||||
|
||||
inline static void _network_proxy_destroy(struct network_proxy *proxy)
|
||||
{
|
||||
g_free((void *)proxy->host);
|
||||
g_free(proxy->host);
|
||||
}
|
||||
|
||||
|
||||
|
@ -26,9 +26,9 @@ static void network_proxy_simple_destroy(struct network_proxy *proxy)
|
||||
{
|
||||
struct _network_proxy_simple *self = container_of(proxy, struct _network_proxy_simple, proxy);
|
||||
|
||||
g_free((void *)self->password);
|
||||
g_free((void *)self->string_after);
|
||||
g_free((void *)self->string);
|
||||
g_free(self->password);
|
||||
g_free(self->string_after);
|
||||
g_free(self->string);
|
||||
|
||||
_network_proxy_destroy(proxy);
|
||||
|
||||
|
@ -6,9 +6,9 @@
|
||||
struct _network_proxy_simple {
|
||||
struct network_proxy proxy;
|
||||
|
||||
const char *string_after;
|
||||
const char *string;
|
||||
const char *password;
|
||||
char *string_after;
|
||||
char *string;
|
||||
char *password;
|
||||
};
|
||||
|
||||
struct network_proxy *_network_proxy_simple_create(void);
|
||||
|
@ -67,8 +67,8 @@ static void network_proxy_socks5_destroy(struct network_proxy *proxy)
|
||||
{
|
||||
struct _network_proxy_socks5 *self = container_of(proxy, struct _network_proxy_socks5, proxy);
|
||||
|
||||
g_free((void *)self->password);
|
||||
g_free((void *)self->username);
|
||||
g_free(self->password);
|
||||
g_free(self->username);
|
||||
_network_proxy_destroy(proxy);
|
||||
g_free(self);
|
||||
}
|
||||
|
@ -6,8 +6,8 @@
|
||||
struct _network_proxy_socks5 {
|
||||
struct network_proxy proxy;
|
||||
|
||||
const char *username;
|
||||
const char *password;
|
||||
char *username;
|
||||
char *password;
|
||||
};
|
||||
|
||||
struct network_proxy *_network_proxy_socks5_create(void);
|
||||
|
@ -50,7 +50,7 @@ struct network_proxy {
|
||||
const struct network_proxy_send_string_info *);
|
||||
|
||||
/* hostname of proxy host */
|
||||
const char *host;
|
||||
char *host;
|
||||
|
||||
/* portnumber of proxy */
|
||||
int port;
|
||||
|
Loading…
Reference in New Issue
Block a user