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