]> git.meshlink.io Git - catta/blobdiff - avahi-core/cache.c
* rename all limit defs so that they end with _MAX
[catta] / avahi-core / cache.c
index ef7293d9a7f3601297c512259451586449480e15..bfbbf85319fa755cc6b7dec9985ff980a7ed3b76 100644 (file)
@@ -32,7 +32,7 @@
 #include "cache.h"
 #include "log.h"
 
-#define AVAHI_MAX_CACHE_ENTRIES 500
+#define AVAHI_CACHE_ENTRIES_MAX 500
 
 static void remove_entry(AvahiCache *c, AvahiCacheEntry *e) {
     AvahiCacheEntry *t;
@@ -331,7 +331,7 @@ void avahi_cache_update(AvahiCache *c, AvahiRecord *r, int cache_flush, const Av
             
 /*             avahi_log_debug("cache: couldn't find matching cache entry for %s", txt);   */
 
-            if (c->n_entries >= AVAHI_MAX_CACHE_ENTRIES)
+            if (c->n_entries >= AVAHI_CACHE_ENTRIES_MAX)
                 return;
 
             if (!(e = avahi_new(AvahiCacheEntry, 1))) {