summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 8ea1756)
raw | patch | inline | side by side (parent: 8ea1756)
author | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Sat, 23 Feb 2008 09:56:37 +0000 (10:56 +0100) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Sat, 23 Feb 2008 09:56:37 +0000 (10:56 +0100) |
If (pingobj == NULL), then the init-function will return (-1) so that the
plugin is deactivated.
plugin is deactivated.
src/ping.c | patch | blob | history |
diff --git a/src/ping.c b/src/ping.c
index 27a65faafc36f23a14118ac61a04353acc48704f..05f660b32bb6383d2fc55489d4230cc6e68ed1e1 100644 (file)
--- a/src/ping.c
+++ b/src/ping.c
hl_this = hl_this->next;
}
}
-}
+} /* void add_hosts */
static int ping_init (void)
{
+ if (pingobj == NULL)
+ return (-1);
+
if (hosts != NULL)
add_hosts ();
return (0);
-}
+} /* int ping_init */
static int ping_config (const char *key, const char *value)
{