From: Peter Krempa Date: Thu, 16 Apr 2026 08:15:29 +0000 (+0200) Subject: hyperv: Use 'size_t' for variable named 'i' X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;p=thirdparty%2Flibvirt.git hyperv: Use 'size_t' for variable named 'i' Per our syntax check iterator variables ought to be declared as 'size_t'. Fixes: 9a82b2a92fc91e4a46bb7d77cfefe2b2d04a0b6e Signed-off-by: Peter Krempa --- diff --git a/src/hyperv/hyperv_wmi.c b/src/hyperv/hyperv_wmi.c index f0be0fa3fb..1e39e6d61f 100644 --- a/src/hyperv/hyperv_wmi.c +++ b/src/hyperv/hyperv_wmi.c @@ -871,7 +871,7 @@ hypervOutputParamReferenceId(WsXmlNodeH node) { WsXmlNodeH selector_set = NULL; WsXmlNodeH selector = NULL; - int i = 0; + size_t i = 0; if (node) selector_set = ws_xml_find_in_tree(node, XML_NS_WS_MAN, "SelectorSet", TRUE); @@ -922,7 +922,7 @@ hypervResponseGetOutputParam(hypervPrivate *priv, char *provider_ns = NULL; const char *rv_str = NULL; int return_code; - int i = 0; + size_t i = 0; body = ws_xml_get_soap_body(response); if (!body) {