From 0f0b16192489eda4ece753d60a6d2f55fa8719f7 Mon Sep 17 00:00:00 2001 From: Shuhrat Dehkanov Date: Tue, 2 Jun 2015 23:11:17 +0900 Subject: [PATCH] Fix incompatible pointer type warning [ 54s] /home/abuild/rpmbuild/BUILD/org.tizen.settings-tv-ref-0.1/src /view_maincatalog.c: In function '_draw_subitems': [ 54s] /home/abuild/rpmbuild/BUILD/org.tizen.settings-tv-ref-0.1/src /view_maincatalog.c:1181:45: warning: passing argument 2 of 'provider_get_passcode' from incompatible pointer type [ 54s] && (provider_get_passcode(KEY_PASSCODE, &passcode) == -1)) { [ 54s] ^ [ 54s] In file included from /home/abuild/rpmbuild/BUILD/ org.tizen.settings-tv-ref-0.1/src/view_maincatalog.c:28:0: [ 54s] /home/abuild/rpmbuild/BUILD/org.tizen.settings-tv-ref-0.1/ include/settings_provider.h:28:5: note: expected 'char **' but argument is of type 'const char **' [ 54s] int provider_get_passcode(const char *key, char **val); [ 54s] ^ Change-Id: I4926ee81a6f19504ea8b6b5721fbf5d827bcaf0a --- src/view_maincatalog.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/view_maincatalog.c b/src/view_maincatalog.c index 4112ba6..d6e5ea2 100644 --- a/src/view_maincatalog.c +++ b/src/view_maincatalog.c @@ -1099,7 +1099,8 @@ static int _draw_subitems(struct _view_data *data, const char *name) int cnt; Eina_Array_Iterator a; unsigned int i; - const char *id, *passcode, *style, *status; + const char *id, *style, *status; + char *passcode; Eina_Array *enabled; if (!data || !name || !data->base) { -- 2.7.4