Make sdudp string const
[project/mdnsd.git] / cache.c
diff --git a/cache.c b/cache.c
index fa32465f953bb18a3577ef48282f70bc18050a12..dd263d204272d86f49203993ff9d4a8d2c7cb5a0 100644 (file)
--- a/cache.c
+++ b/cache.c
@@ -121,7 +121,7 @@ void cache_cleanup(struct interface *iface)
 }
 
 void
-cache_scan(void)
+cache_update(void)
 {
        struct interface *iface;
        struct cache_service *s;
@@ -143,6 +143,7 @@ cache_service(struct interface *iface, char *entry, int hlen, int ttl)
                if (!strcmp(s->entry, entry)) {
                        s->refresh = 50;
                        s->time = monotonic_time();
+                       s->ttl = ttl;
                        return s;
                }