From 181e260339fc9836cca8928a26b66dea12abd2b6 Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Thu, 11 Feb 2016 09:27:19 -0600 Subject: [PATCH] xml.c: pass non-const xmlNode to xmlHasProp() This avoids a compiler warning when compiling with older versions of libxml2 (const was added to the prototype at some point). --- src/xml.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/xml.c b/src/xml.c index 5c806cb4..18721b14 100644 --- a/src/xml.c +++ b/src/xml.c @@ -5,7 +5,7 @@ */ /* - * Copyright (C) 2012, 2013, 2015 Eric Biggers + * Copyright (C) 2012-2016 Eric Biggers * * This file is free software; you can redistribute it and/or modify it under * the terms of the GNU Lesser General Public License as published by the Free @@ -1027,7 +1027,7 @@ xml_print_image_info(struct wim_xml_info *info, int image) *----------------------------------------------------------------------------*/ static int -image_node_get_index(const xmlNode *node) +image_node_get_index(xmlNode *node) { u64 v = node_get_number((const xmlNode *)xmlHasProp(node, "INDEX"), 10); return min(v, INT_MAX); -- 2.43.0