apcups branch: Fix minor issues with the apcups plugin.
authorocto <octo>
Tue, 6 Jun 2006 07:50:33 +0000 (07:50 +0000)
committerocto <octo>
Tue, 6 Jun 2006 07:50:33 +0000 (07:50 +0000)
commit65b790885ecc7f2663f758b8a67b855a05a91c23
treec31b8a271efaaa114584b42ed5e5222d6b239bf2
parentf1bfea1ac72c1247356bc892a74620052b4bfab7
apcups branch: Fix minor issues with the apcups plugin.

- Removed `#include <errno.h>' since it is included from `collectd.h'.
- Changed `global_host' back to NULL. Added a ?:-construct to use a default
  value when querying the server.
- Use `strcmp' rather than `strncmp' to compare the full string, not just part
  of the strings.
src/apcups.c