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