collectd: unbreak 32-built build of nut plugin following update

This commit is contained in:
sthen 2022-03-13 13:19:33 +00:00
parent 45d4e1f109
commit f75b3b9d90
2 changed files with 15 additions and 1 deletions

View File

@ -34,7 +34,7 @@ REVISION-main = 0
REVISION-memcachec = 0
REVISION-mqtt = 0
REVISION-mysql = 1
REVISION-nut = 0
REVISION-nut = 1
REVISION-pgsql = 0
REVISION-ping = 0
REVISION-prometheus = 2

View File

@ -0,0 +1,14 @@
post-2.7, nut changed to size_t for numa in upscli_list_next()
Index: src/nut.c
--- src/nut.c.orig
+++ src/nut.c
@@ -249,7 +249,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 */