Fix incompatible pointer type warning 44/40344/1
authorShuhrat Dehkanov <sh.dehkanov@samsung.com>
Tue, 2 Jun 2015 14:11:17 +0000 (23:11 +0900)
committerShuhrat Dehkanov <sh.dehkanov@samsung.com>
Tue, 2 Jun 2015 14:11:41 +0000 (23:11 +0900)
[   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

index 4112ba6..d6e5ea2 100644 (file)
@@ -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) {