1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
Index: collectd/src/nut.c
===================================================================
--- collectd.orig/src/nut.c
+++ collectd/src/nut.c
@@ -46,7 +46,7 @@ struct nut_ups_s {
collectd_upsconn_t *conn;
char *upsname;
char *hostname;
- int port;
+ uint16_t port;
nut_ups_t *next;
};
@@ -250,7 +250,7 @@ static int nut_read(user_data_t *user_da
const char *query[3] = {"VAR", ups->upsname, NULL};
unsigned int query_num = 2;
char **answer;
- unsigned int answer_num;
+ size_t answer_num;
int status;
/* (Re-)Connect if we have no connection */
|