From 2af91b3728470b9831a748d51d081b117648ae91 Mon Sep 17 00:00:00 2001
From: Petr Cech <pcech@redhat.com>
Date: Tue, 26 Jul 2016 10:37:19 +0200
Subject: [PATCH 44/44] test_utils: Fixing assignment discards 'const'
qualifier
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>
---
src/tests/cmocka/test_utils.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/tests/cmocka/test_utils.c b/src/tests/cmocka/test_utils.c
index 4c72a59437105e683cec2d39c36951aeff63767b..5349accc5c6b55f7d725bfdeaf318b90289880dd 100644
--- a/src/tests/cmocka/test_utils.c
+++ b/src/tests/cmocka/test_utils.c
@@ -1806,13 +1806,13 @@ static void test_sss_get_domain_mappings_content(void **state)
assert_non_null(c);
c->forest_root = find_domain_by_name(dom, "subdom1.dom", true);
assert_non_null(c->forest_root);
- c->forest = "subdom1.dom";
+ c->forest = discard_const_p(char, "subdom1.dom");
c = find_domain_by_name(dom, "subdom3.dom", true);
assert_non_null(c);
c->forest_root = find_domain_by_name(dom, "subdom1.dom", true);
assert_non_null(c->forest_root);
- c->forest = "subdom1.dom";
+ c->forest = discard_const_p(char, "subdom1.dom");
ret = sss_get_domain_mappings_content(test_ctx, dom, &content);
assert_int_equal(ret, EOK);
--
2.4.11