projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
src/daemon/common.[ch]: add check_capability() function
[collectd.git]
/
src
/
nut.c
diff --git
a/src/nut.c
b/src/nut.c
index
a033e2f
..
b5c6b41
100644
(file)
--- a/
src/nut.c
+++ b/
src/nut.c
@@
-25,6
+25,7
@@
**/
#include "collectd.h"
**/
#include "collectd.h"
+
#include "common.h"
#include "plugin.h"
#include "common.h"
#include "plugin.h"
@@
-247,7
+248,6
@@
static int nut_read_one (nut_ups_t *ups)
static int nut_read (void)
{
static int nut_read (void)
{
- nut_ups_t *ups;
int success = 0;
pthread_mutex_lock (&read_lock);
int success = 0;
pthread_mutex_lock (&read_lock);
@@
-258,7
+258,7
@@
static int nut_read (void)
if (success != 0)
return (0);
if (success != 0)
return (0);
- for (ups = upslist_head; ups != NULL; ups = ups->next)
+ for (
nut_ups_t *
ups = upslist_head; ups != NULL; ups = ups->next)
if (nut_read_one (ups) == 0)
success++;
if (nut_read_one (ups) == 0)
success++;