collectd: unbreak 32-built build of nut plugin following update
This commit is contained in:
parent
45d4e1f109
commit
f75b3b9d90
@ -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
|
||||
|
14
sysutils/collectd/patches/patch-src_nut_c
Normal file
14
sysutils/collectd/patches/patch-src_nut_c
Normal 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 */
|
Loading…
x
Reference in New Issue
Block a user