1
0
mirror of https://github.com/irssi/irssi.git synced 2024-09-15 04:28:09 -04:00

Removed casts in g_free(), therefore also removed some const declarations

This commit is contained in:
hawken93 2014-10-04 23:22:50 +02:00
parent 67d343fd3a
commit c2505203d0
8 changed files with 14 additions and 14 deletions

View File

@ -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);

View File

@ -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);

View File

@ -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);
}

View File

@ -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);

View File

@ -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);

View File

@ -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);
}

View File

@ -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);

View File

@ -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;