From: Peter Krempa <[email protected]>

'char *tmp' is assigned from calling 'strrchr' on a 'const char *'. New
clang in fedora doesn't like it. Make 'tmp' const.

Signed-off-by: Peter Krempa <[email protected]>
---

https://gitlab.com/MichalPrivoznik/libvirt/-/jobs/12208300313

 src/util/vircgroup.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/util/vircgroup.c b/src/util/vircgroup.c
index 532a7e5690..3d66d3acb2 100644
--- a/src/util/vircgroup.c
+++ b/src/util/vircgroup.c
@@ -517,7 +517,7 @@ int
 virCgroupSetValueRaw(const char *path,
                      const char *value)
 {
-    char *tmp;
+    const char *tmp;

     VIR_DEBUG("Set path '%s' to value '%s'", path, value);
     if (virFileWriteStr(path, value, 0) < 0) {
-- 
2.52.0

Reply via email to