From e63a65b3955b173a3e8d6b78c6377a518a9922d6 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 11 Aug 2005 23:45:42 +0000 Subject: * drop glib from avahi-common * add new module with avahi_malloc() and friends git-svn-id: file:///home/lennart/svn/public/avahi/trunk@298 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe --- avahi-core/announce.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'avahi-core/announce.c') diff --git a/avahi-core/announce.c b/avahi-core/announce.c index fe461de..5d9e8cf 100644 --- a/avahi-core/announce.c +++ b/avahi-core/announce.c @@ -45,7 +45,7 @@ static void remove_announcement(AvahiServer *s, AvahiAnnouncement *a) { static void elapse_announce(AvahiTimeEvent *e, void *userdata); -static void set_timeout(AvahiAnnouncement *a, const GTimeVal *tv) { +static void set_timeout(AvahiAnnouncement *a, const struct timeval *tv) { g_assert(a); if (!tv) { @@ -95,7 +95,7 @@ void avahi_entry_group_check_probed(AvahiEntryGroup *g, gboolean immediately) { a->n_iteration = 1; next_state(a); } else { - GTimeVal tv; + struct timeval tv; a->n_iteration = 0; avahi_elapse_time(&tv, 0, AVAHI_ANNOUNCEMENT_JITTER_MSEC); set_timeout(a, &tv); @@ -140,7 +140,7 @@ static void next_state(AvahiAnnouncement *a) { set_timeout(a, NULL); next_state(a); } else { - GTimeVal tv; + struct timeval tv; avahi_interface_post_probe(a->interface, a->entry->record, FALSE); @@ -171,7 +171,7 @@ static void next_state(AvahiAnnouncement *a) { set_timeout(a, NULL); } else { - GTimeVal tv; + struct timeval tv; avahi_elapse_time(&tv, a->sec_delay*1000, AVAHI_ANNOUNCEMENT_JITTER_MSEC); if (a->n_iteration < 10) @@ -204,7 +204,7 @@ AvahiAnnouncement *avahi_get_announcement(AvahiServer *s, AvahiEntry *e, AvahiIn static void go_to_initial_state(AvahiAnnouncement *a, gboolean immediately) { AvahiEntry *e; - GTimeVal tv; + struct timeval tv; g_assert(a); e = a->entry; -- cgit