aboutsummaryrefslogtreecommitdiffstats
path: root/epan/addr_resolv.c
diff options
context:
space:
mode:
authorBill Meier <wmeier@newsguy.com>2008-07-08 02:25:30 +0000
committerBill Meier <wmeier@newsguy.com>2008-07-08 02:25:30 +0000
commit44efa0ed2ef94755b092880b17934b8444c5b1ca (patch)
treecc4d77ea65f68ddb846d50980927e163a21bf0c7 /epan/addr_resolv.c
parente1a5e58ac1db793a3aee17b7775523a5005e5ce5 (diff)
downloadwireshark-44efa0ed2ef94755b092880b17934b8444c5b1ca.tar.gz
wireshark-44efa0ed2ef94755b092880b17934b8444c5b1ca.tar.bz2
wireshark-44efa0ed2ef94755b092880b17934b8444c5b1ca.zip
Fix some simple cases of GTK2 deprecated API usage by using a renamed or equivalent API
gtk_timeout_add() ==> g_timeout_add gtk_timeout_remove() ==> g_source_remove() Also: timer callback should return gboolean (not void or gint) svn path=/trunk/; revision=25672
Diffstat (limited to 'epan/addr_resolv.c')
-rw-r--r--epan/addr_resolv.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/epan/addr_resolv.c b/epan/addr_resolv.c
index dfc9e5fba2..9fba20e3f6 100644
--- a/epan/addr_resolv.c
+++ b/epan/addr_resolv.c
@@ -2181,7 +2181,7 @@ host_name_lookup_init(void) {
/* XXX - The ADNS "documentation" isn't very clear:
* - Do we need to keep our query structures around?
*/
-gint
+gboolean
host_name_lookup_process(gpointer data _U_) {
adns_queue_msg_t *almsg;
GList *cur;
@@ -2230,7 +2230,7 @@ host_name_lookup_process(gpointer data _U_) {
}
/* Keep the timeout in place */
- return 1;
+ return TRUE;
}
void
@@ -2250,10 +2250,10 @@ host_name_lookup_cleanup(void) {
#else
-gint
+gboolean
host_name_lookup_process(gpointer data _U_) {
/* Kill the timeout, as there's nothing for it to do */
- return 0;
+ return FALSE;
}
void