From: <st...@us...> - 2013-07-28 15:12:57
|
Revision: 7235 http://sourceforge.net/p/xymon/code/7235 Author: storner Date: 2013-07-28 15:12:52 +0000 (Sun, 28 Jul 2013) Log Message: ----------- xymonnet2: load_hostnames() can return 1 upon success (= no reload needed) Modified Paths: -------------- trunk/xymonnet/setuptests.c Modified: trunk/xymonnet/setuptests.c =================================================================== --- trunk/xymonnet/setuptests.c 2013-07-28 12:54:12 UTC (rev 7234) +++ trunk/xymonnet/setuptests.c 2013-07-28 15:12:52 UTC (rev 7235) @@ -79,10 +79,10 @@ void *hwalk; int count = 0; - if (load_hostnames("@", NULL, get_fqdn()) != 0) { + if (load_hostnames("@", NULL, get_fqdn()) < 0) { errprintf("Cannot load host configuration from xymond\n"); - if (load_hostnames(xgetenv("HOSTSCFG"), "netinclude", get_fqdn()) != 0) { + if (load_hostnames(xgetenv("HOSTSCFG"), "netinclude", get_fqdn()) < 0) { errprintf("Cannot load host configuration from %s\n", xgetenv("HOSTSCFG")); return 1; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |