summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2010-07-26 23:43:51 -0700
committerMarcel Holtmann <marcel@holtmann.org>2010-07-26 23:43:51 -0700
commite4def1159e908e4beff52aa58214bcf1a2cbfb53 (patch)
tree7138bd0adcdcd4da594fe316b4bf0dfa066f93a8
parent8e124da2c8828911923054a268c5bb69569ca310 (diff)
downloadconnman-e4def1159e908e4beff52aa58214bcf1a2cbfb53.tar.gz
connman-e4def1159e908e4beff52aa58214bcf1a2cbfb53.tar.bz2
connman-e4def1159e908e4beff52aa58214bcf1a2cbfb53.zip
Fix user data for resolver library debug function prototype
-rw-r--r--gresolv/gresolv.c4
-rw-r--r--gresolv/gresolv.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/gresolv/gresolv.c b/gresolv/gresolv.c
index 40bde542..2099cbc3 100644
--- a/gresolv/gresolv.c
+++ b/gresolv/gresolv.c
@@ -329,13 +329,13 @@ void g_resolv_unref(GResolv *resolv)
}
void g_resolv_set_debug(GResolv *resolv,
- GResolvDebugFunc func, gpointer data)
+ GResolvDebugFunc func, gpointer user_data)
{
if (resolv == NULL)
return;
resolv->debug_func = func;
- resolv->debug_data = data;
+ resolv->debug_data = user_data;
}
int g_resolv_add_nameserver(GResolv *resolv, const char *address,
diff --git a/gresolv/gresolv.h b/gresolv/gresolv.h
index 1d0b3c1b..1ea83470 100644
--- a/gresolv/gresolv.h
+++ b/gresolv/gresolv.h
@@ -50,7 +50,7 @@ GResolv *g_resolv_ref(GResolv *resolv);
void g_resolv_unref(GResolv *resolv);
void g_resolv_set_debug(GResolv *resolv,
- GResolvDebugFunc func, gpointer data);
+ GResolvDebugFunc func, gpointer user_data);
int g_resolv_add_nameserver(GResolv *resolv, const char *address,
uint16_t port, unsigned long flags);