1
0
mirror of https://github.com/moparisthebest/hexchat synced 2024-11-22 17:22:18 -05:00

Fix warnings

This commit is contained in:
TingPing 2014-01-08 03:51:39 -05:00
parent 20d26aea94
commit 91ea5b6907

View File

@ -1274,8 +1274,10 @@ inbound_next_nick (session *sess, char *nick, int error,
static void static void
dns_addr_callback (GResolver *resolver, GAsyncResult *result, session *sess) dns_addr_callback (GObject *obj, GAsyncResult *result, gpointer user_data)
{ {
GResolver *resolver = G_RESOLVER(obj);
session *sess = (session*)user_data;
gchar *addr; gchar *addr;
g_return_if_fail (is_session(sess)); g_return_if_fail (is_session(sess));
@ -1288,8 +1290,10 @@ dns_addr_callback (GResolver *resolver, GAsyncResult *result, session *sess)
} }
static void static void
dns_name_callback (GResolver *resolver, GAsyncResult *result, session *sess) dns_name_callback (GObject *obj, GAsyncResult *result, gpointer user_data)
{ {
GResolver *resolver = G_RESOLVER(obj);
session *sess = (session*)user_data;
GList* addrs; GList* addrs;
gchar* addr; gchar* addr;
GList* list; GList* list;
@ -1320,7 +1324,6 @@ const message_tags_data *tags_data)
GResolver *res = g_resolver_get_default (); GResolver *res = g_resolver_get_default ();
GInetAddress *addr; GInetAddress *addr;
char *po; char *po;
char tbuf[1024];
po = strrchr (host, '@'); po = strrchr (host, '@');
if (po) if (po)