[glib] gio/gthreadedresolver.c: Fix non-UNIX build
- From: Chun-wei Fan <fanchunwei src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] gio/gthreadedresolver.c: Fix non-UNIX build
- Date: Mon, 5 Nov 2012 09:22:59 +0000 (UTC)
commit 2b17e797a43944e38babcac1ba02296cfd81623d
Author: Chun-wei Fan <fanchunwei src gnome org>
Date: Mon Nov 5 17:22:38 2012 +0800
gio/gthreadedresolver.c: Fix non-UNIX build
Move the GError *error declaration up, as that variable is also used for
non-Unix builds.
gio/gthreadedresolver.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gio/gthreadedresolver.c b/gio/gthreadedresolver.c
index 23f4360..2c2398e 100644
--- a/gio/gthreadedresolver.c
+++ b/gio/gthreadedresolver.c
@@ -204,12 +204,12 @@ do_lookup_records (GTask *task,
{
LookupRecordsData *lrd = task_data;
GList *targets;
+ GError *error = NULL;
#if defined(G_OS_UNIX)
gint len = 512;
gint herr;
GByteArray *answer;
gint rrtype;
- GError *error = NULL;
rrtype = _g_resolver_record_type_to_rrtype (lrd->record_type);
answer = g_byte_array_new ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]