summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Reichl <preichl@redhat.com>2015-07-28 04:12:48 -0400
committerJakub Hrozek <jhrozek@redhat.com>2015-07-28 13:30:46 +0200
commit4f68747b1baca78be496e9a5ebe4b89a9845dc8d (patch)
treeb860faf29bdaa35832191843792fb224c09b0204
parent6ed964cf2e5a68e92e220f3b9f55029731bcabaa (diff)
downloadsssd-4f68747b1baca78be496e9a5ebe4b89a9845dc8d.tar.gz
sssd-4f68747b1baca78be496e9a5ebe4b89a9845dc8d.tar.xz
sssd-4f68747b1baca78be496e9a5ebe4b89a9845dc8d.zip
TESTS: fix compiler warnings
Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>
-rw-r--r--src/confdb/confdb.h2
-rw-r--r--src/tests/cmocka/test_sysdb_views.c2
2 files changed, 1 insertions, 3 deletions
diff --git a/src/confdb/confdb.h b/src/confdb/confdb.h
index 36df6aea2..0b0ae0dcf 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 83007b76a..c53d8187b 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);