openhpi/openhpi-c99.patch

17 lines
657 B
Diff

Avoid an int-conversion C type error and a build failure with GCC 14.
Submitted upstream: <https://github.com/open-hpi/openhpi/pull/2752>
diff --git a/plugins/ov_rest/ov_rest_re_discover.c b/plugins/ov_rest/ov_rest_re_discover.c
index 5ad542793f628041..7cdd13d8c395f5d6 100644
--- a/plugins/ov_rest/ov_rest_re_discover.c
+++ b/plugins/ov_rest/ov_rest_re_discover.c
@@ -704,7 +704,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;