Control: tags -1 patch Dear maintainer,
attached is a patch to fix the mentioned FTBFS issue. -- Athos Ribeiro
>From 58b3994f8716c3e200dd36d719a1647ce63c0cc9 Mon Sep 17 00:00:00 2001 From: Florian Weimer <fwei...@redhat.com> Date: Fri, 5 Jan 2024 06:47:05 +0100 Subject: [PATCH] C type error in the ov_rest plugin NULL can have a pointer type, and converting pointers to integers without a cast is not valid C. Compilers are beginning to treat this an error, leading to a build failure. Origin: vendor, https://src.fedoraproject.org/rpms/openhpi/c/a30cd1a2775c545501f22038c893cca6bf4883b0 Forwarded: https://github.com/open-hpi/openhpi/pull/2752 Last-Update: 2024-09-04 --- plugins/ov_rest/ov_rest_re_discover.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/ov_rest/ov_rest_re_discover.c b/plugins/ov_rest/ov_rest_re_discover.c index 8c0dad95c..fb8fb75ff 100644 --- a/plugins/ov_rest/ov_rest_re_discover.c +++ b/plugins/ov_rest/ov_rest_re_discover.c @@ -706,7 +706,7 @@ SaErrorT remove_composer(struct oh_handler_state *handler, byte bayNumber) { - SaErrorT rv = NULL; + SaErrorT rv = 0; SaHpiResourceIdT resource_id = 0; struct oh_event event = {0}; struct ovRestHotswapState *hotswap_state = NULL;