diff options
author | TingPing <tingping@tingping.se> | 2014-01-08 03:51:39 -0500 |
---|---|---|
committer | TingPing <tingping@tingping.se> | 2014-01-08 03:51:39 -0500 |
commit | 91ea5b6907ccb570818d0e91a98afbe59cdaf57e (patch) | |
tree | fdcb5df8405f670db861376b576c73eea70ac8aa /src | |
parent | 20d26aea943d8de63a61cb92f506dd51b934fe36 (diff) |
Fix warnings
Diffstat (limited to 'src')
-rw-r--r-- | src/common/inbound.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/common/inbound.c b/src/common/inbound.c index 780e4ae3..a157a347 100644 --- a/src/common/inbound.c +++ b/src/common/inbound.c @@ -1274,8 +1274,10 @@ inbound_next_nick (session *sess, char *nick, int error, 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; g_return_if_fail (is_session(sess)); @@ -1288,8 +1290,10 @@ dns_addr_callback (GResolver *resolver, GAsyncResult *result, session *sess) } 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; gchar* addr; GList* list; @@ -1315,12 +1319,11 @@ dns_name_callback (GResolver *resolver, GAsyncResult *result, session *sess) void do_dns (session *sess, char *nick, char *host, -const message_tags_data *tags_data) + const message_tags_data *tags_data) { GResolver *res = g_resolver_get_default (); GInetAddress *addr; char *po; - char tbuf[1024]; po = strrchr (host, '@'); if (po) |