diff options
author | vkalintiris <vasilis@netdata.cloud> | 2021-02-25 14:29:41 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-25 14:29:41 +0200 |
commit | ad163251fca6056b3f88221cfc8f246ce1df3feb (patch) | |
tree | f64ad051b098c809a2ef155fc6a2610b0e517c1a /collectors/freeipmi.plugin/freeipmi_plugin.c | |
parent | 4455cb5d847a30f6ee9aa86bfc77637c83eb1f20 (diff) |
Remove unreachable #else directives in plugins. (#10523)
They are unreachable because Makefile.am will conditionally include the
relevant source files iff the #ifdef's argument is defined in
configure.ac.
Diffstat (limited to 'collectors/freeipmi.plugin/freeipmi_plugin.c')
-rw-r--r-- | collectors/freeipmi.plugin/freeipmi_plugin.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/collectors/freeipmi.plugin/freeipmi_plugin.c b/collectors/freeipmi.plugin/freeipmi_plugin.c index bd3c533cad..8229f55c1b 100644 --- a/collectors/freeipmi.plugin/freeipmi_plugin.c +++ b/collectors/freeipmi.plugin/freeipmi_plugin.c @@ -26,8 +26,6 @@ #include <unistd.h> #include <sys/time.h> -#ifdef HAVE_FREEIPMI - #define IPMI_PARSE_DEVICE_LAN_STR "lan" #define IPMI_PARSE_DEVICE_LAN_2_0_STR "lan_2_0" #define IPMI_PARSE_DEVICE_LAN_2_0_STR2 "lan20" @@ -1861,11 +1859,3 @@ int main (int argc, char **argv) { if(now_monotonic_sec() - started_t > 14400) exit(0); } } - -#else // !HAVE_FREEIPMI - -int main(int argc, char **argv) { - fatal("freeipmi.plugin is not compiled."); -} - -#endif // !HAVE_FREEIPMI |