X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=avahi-core%2Futil.c;h=8dd9e645bc79a7d19aa1c62808ad7974714f6e8d;hb=22a61b042376903deada022e7585e0585aaa7d43;hp=086c041a79ca9490b52590ac1b49310297a39ec5;hpb=a3596a5e3ec4937a220e6e60218639e2aba82701;p=catta diff --git a/avahi-core/util.c b/avahi-core/util.c index 086c041..8dd9e64 100644 --- a/avahi-core/util.c +++ b/avahi-core/util.c @@ -29,6 +29,8 @@ #include #include #include +#include +#include #include "util.h" @@ -60,7 +62,6 @@ static gchar *unescape_uneeded(const gchar *src, gchar *ret_dest, size_t size) { *(ret_dest++) = '\\'; *(ret_dest++) = *src; - escaped = FALSE; } else { if (--size <= 1) break; @@ -189,7 +190,7 @@ GTimeVal *avahi_elapse_time(GTimeVal *tv, guint msec, guint jitter) { return tv; } -gint avahi_age(const GTimeVal *a) { +glong avahi_age(const GTimeVal *a) { GTimeVal now; g_assert(a); @@ -401,3 +402,4 @@ gint avahi_domain_hash(const gchar *s) { g_free(n); } } +