From 684f1ab6d4ba2c958192d784ed91298ef2d71d90 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Tue, 14 Feb 2006 21:31:30 +0000 Subject: Dont' write a message to syslog when /etc/avahi/hosts does not exist git-svn-id: file:///home/lennart/svn/public/avahi/trunk@1136 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe --- avahi-daemon/static-hosts.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/avahi-daemon/static-hosts.c b/avahi-daemon/static-hosts.c index 8b1eb58..aba96f7 100644 --- a/avahi-daemon/static-hosts.c +++ b/avahi-daemon/static-hosts.c @@ -155,7 +155,8 @@ void static_hosts_load(int in_chroot) { if (!(f = fopen(filename, "r"))) { - avahi_log_error ("Failed to open static hosts file: %s", strerror (errno)); + if (errno != ENOENT) + avahi_log_error ("Failed to open static hosts file: %s", strerror (errno)); return; } -- cgit