From 9d607ec1ab8bd199e1915f288455f3906e687c6d Mon Sep 17 00:00:00 2001 From: Collectd Packaging Team Date: Thu, 7 Dec 2023 15:35:28 +0100 Subject: [PATCH] fix-nut-integer-sizes =================================================================== Gbp-Pq: Name fix-nut-integer-sizes --- src/nut.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nut.c b/src/nut.c index 579ecb7..f4362e3 100644 --- a/src/nut.c +++ b/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_data) { 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 */ -- 2.30.2