From b211247a005257a4e2dec0d43b719600c51a14d4 Mon Sep 17 00:00:00 2001
From: Pavel Reichl <preichl@redhat.com>
Date: Tue, 28 Jul 2015 04:12:48 -0400
Subject: [PATCH 27/27] TESTS: fix compiler warnings
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>
---
src/confdb/confdb.h | 2 +-
src/tests/cmocka/test_sysdb_views.c | 2 --
2 files changed, 1 insertion(+), 3 deletions(-)
diff --git a/src/confdb/confdb.h b/src/confdb/confdb.h
index 36df6aea268cc5c82696f20b1a65963350d5e100..0b0ae0dcf2cd26462a9b0c895d833faf5c85b4e5 100644
--- a/src/confdb/confdb.h
+++ b/src/confdb/confdb.h
@@ -266,7 +266,7 @@ struct sss_domain_info {
struct timeval subdomains_last_checked;
bool has_views;
- char *view_name;
+ const char *view_name;
struct sss_domain_info *prev;
struct sss_domain_info *next;
diff --git a/src/tests/cmocka/test_sysdb_views.c b/src/tests/cmocka/test_sysdb_views.c
index 83007b76a625edef67109850648b2d71645e22bb..c53d8187b181a5937f642eec32af28e8207b292b 100644
--- a/src/tests/cmocka/test_sysdb_views.c
+++ b/src/tests/cmocka/test_sysdb_views.c
@@ -285,7 +285,6 @@ void test_sysdb_add_overrides_to_object_local(void **state)
{
int ret;
struct ldb_message *orig;
- struct ldb_message_element *el;
char *tmp_str;
struct sysdb_test_ctx *test_ctx = talloc_get_type_abort(*state,
struct sysdb_test_ctx);
@@ -314,7 +313,6 @@ void test_sysdb_add_overrides_to_object_missing_overridedn(void **state)
{
int ret;
struct ldb_message *orig;
- struct ldb_message_element *el;
char *tmp_str;
struct sysdb_test_ctx *test_ctx = talloc_get_type_abort(*state,
struct sysdb_test_ctx);
--
2.4.3