]> git.meshlink.io Git - catta/blobdiff - avahi-core/util.c
* Rework some Browsing/Resolving stuff
[catta] / avahi-core / util.c
index 086c041a79ca9490b52590ac1b49310297a39ec5..8dd9e645bc79a7d19aa1c62808ad7974714f6e8d 100644 (file)
@@ -29,6 +29,8 @@
 #include <errno.h>
 #include <limits.h>
 #include <stdio.h>
+#include <ctype.h>
+#include <stdlib.h>
 
 #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);
     }
 }
+