$OpenBSD: patch-avahi-compat-libdns_sd_warn_c,v 1.2 2010/07/17 14:12:38 ajacoutot Exp $ Reverse logic to stop polluting syslog(3). --- avahi-compat-libdns_sd/warn.c.orig Fri Jun 25 02:41:26 2010 +++ avahi-compat-libdns_sd/warn.c Mon Jul 5 12:02:37 2010 @@ -110,7 +110,7 @@ void avahi_warn_linkage(void) { linkage_warning = 1; pthread_mutex_unlock(&linkage_mutex); - if (!w && !getenv("AVAHI_COMPAT_NOWARN")) { + if (!w && getenv("AVAHI_COMPAT_WARN")) { avahi_warn("The program '%s' uses the "COMPAT_LAYER" compatibility layer of Avahi.", avahi_exe_name()); avahi_warn("Please fix your application to use the native API of Avahi!"); avahi_warn("For more information see ", avahi_exe_name());