6ae9ed
From 55efbb158069281e9b6c8f435cadbe0eba15640f Mon Sep 17 00:00:00 2001
6ae9ed
Message-Id: <55efbb158069281e9b6c8f435cadbe0eba15640f@dist-git>
6ae9ed
From: Peter Krempa <pkrempa@redhat.com>
6ae9ed
Date: Tue, 2 Aug 2016 13:41:47 +0200
6ae9ed
Subject: [PATCH] util: json: Make first argument of virJSONValueCopy const
6ae9ed
6ae9ed
It's just read.
6ae9ed
6ae9ed
(cherry picked from commit 22ad4a7c0a546ca156f5a5b18ad2fcd6a699442c)
6ae9ed
https://bugzilla.redhat.com/show_bug.cgi?id=1134878 [JSON backing]
6ae9ed
https://bugzilla.redhat.com/show_bug.cgi?id=1247521 [gluster multi-host]
6ae9ed
---
6ae9ed
 src/util/virjson.c | 2 +-
6ae9ed
 src/util/virjson.h | 2 +-
6ae9ed
 2 files changed, 2 insertions(+), 2 deletions(-)
6ae9ed
6ae9ed
diff --git a/src/util/virjson.c b/src/util/virjson.c
6ae9ed
index afc98e3..b6d9a34 100644
6ae9ed
--- a/src/util/virjson.c
6ae9ed
+++ b/src/util/virjson.c
6ae9ed
@@ -1241,7 +1241,7 @@ virJSONValueObjectForeachKeyValue(const virJSONValue *object,
6ae9ed
 
6ae9ed
 
6ae9ed
 virJSONValuePtr
6ae9ed
-virJSONValueCopy(virJSONValuePtr in)
6ae9ed
+virJSONValueCopy(const virJSONValue *in)
6ae9ed
 {
6ae9ed
     size_t i;
6ae9ed
     virJSONValuePtr out = NULL;
6ae9ed
diff --git a/src/util/virjson.h b/src/util/virjson.h
6ae9ed
index a5aef39..64cae88 100644
6ae9ed
--- a/src/util/virjson.h
6ae9ed
+++ b/src/util/virjson.h
6ae9ed
@@ -171,6 +171,6 @@ int virJSONValueObjectForeachKeyValue(const virJSONValue *object,
6ae9ed
                                       virJSONValueObjectIteratorFunc cb,
6ae9ed
                                       void *opaque);
6ae9ed
 
6ae9ed
-virJSONValuePtr virJSONValueCopy(virJSONValuePtr in);
6ae9ed
+virJSONValuePtr virJSONValueCopy(const virJSONValue *in);
6ae9ed
 
6ae9ed
 #endif /* __VIR_JSON_H_ */
6ae9ed
-- 
6ae9ed
2.9.2
6ae9ed