[tracker/tracker-1.0] libtracker-data: Fixed compiler warning with tracker_db_interface_sqlite_fts_update_text()



commit 7b09e00e5d5891a2f43db307c99004e555c842a3
Author: Martyn Russell <martyn lanedo com>
Date:   Mon Aug 25 11:28:55 2014 +0100

    libtracker-data: Fixed compiler warning with tracker_db_interface_sqlite_fts_update_text()

 src/libtracker-data/tracker-data-update.c         |    4 ++--
 src/libtracker-data/tracker-db-interface-sqlite.c |    2 +-
 src/libtracker-data/tracker-db-interface-sqlite.h |    2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/libtracker-data/tracker-data-update.c b/src/libtracker-data/tracker-data-update.c
index ea0a6e8..ac5309d 100644
--- a/src/libtracker-data/tracker-data-update.c
+++ b/src/libtracker-data/tracker-data-update.c
@@ -994,8 +994,8 @@ tracker_data_resource_buffer_flush (GError **error)
 
                        tracker_db_interface_sqlite_fts_update_text (iface,
                                                                     resource_buffer->id,
-                                                                    (gchar **) properties->pdata,
-                                                                    (gchar **) text->pdata,
+                                                                    (const gchar **) properties->pdata,
+                                                                    (const gchar **) text->pdata,
                                                                     create);
                        update_buffer.fts_ever_updated = TRUE;
                        g_ptr_array_free (properties, TRUE);
diff --git a/src/libtracker-data/tracker-db-interface-sqlite.c 
b/src/libtracker-data/tracker-db-interface-sqlite.c
index 2610120..d03871b 100644
--- a/src/libtracker-data/tracker-db-interface-sqlite.c
+++ b/src/libtracker-data/tracker-db-interface-sqlite.c
@@ -1200,7 +1200,7 @@ gboolean
 tracker_db_interface_sqlite_fts_update_text (TrackerDBInterface  *db_interface,
                                              int                  id,
                                              const gchar        **properties,
-                                             const char         **text,
+                                             const gchar        **text,
                                              gboolean             create)
 {
        TrackerDBStatement *stmt;
diff --git a/src/libtracker-data/tracker-db-interface-sqlite.h 
b/src/libtracker-data/tracker-db-interface-sqlite.h
index 548814a..45ae50d 100644
--- a/src/libtracker-data/tracker-db-interface-sqlite.h
+++ b/src/libtracker-data/tracker-db-interface-sqlite.h
@@ -55,7 +55,7 @@ void                tracker_db_interface_sqlite_fts_alter_table        (TrackerD
 int                 tracker_db_interface_sqlite_fts_update_text        (TrackerDBInterface       *interface,
                                                                         int                       id,
                                                                         const gchar             **properties,
-                                                                        const char              **text,
+                                                                        const gchar             **text,
                                                                         gboolean                  create);
 
 gboolean            tracker_db_interface_sqlite_fts_delete_text        (TrackerDBInterface       
*db_interface,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]