[tracker] TrackerMiner(Files): Fix some build warnings.
- From: Carlos Garnacho <carlosg src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [tracker] TrackerMiner(Files): Fix some build warnings.
- Date: Wed, 2 Dec 2009 12:34:47 +0000 (UTC)
commit 0286515d38e8e1700a1cdcfbba0ec6a8db6d512a
Author: Carlos Garnacho <carlos gnome org>
Date: Wed Dec 2 14:33:59 2009 +0200
TrackerMiner(Files): Fix some build warnings.
src/libtracker-miner/tracker-miner.c | 4 ++--
src/tracker-miner-fs/tracker-miner-files.c | 5 +++--
2 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-miner.c b/src/libtracker-miner/tracker-miner.c
index a17c193..6c8f704 100644
--- a/src/libtracker-miner/tracker-miner.c
+++ b/src/libtracker-miner/tracker-miner.c
@@ -740,7 +740,7 @@ async_call_data_update_callback (AsyncCallData *data,
result = g_simple_async_result_new_from_error (G_OBJECT (data->miner),
callback,
data->user_data,
- error);
+ (GError *) error);
} else {
result = g_simple_async_result_new (G_OBJECT (data->miner),
callback,
@@ -911,7 +911,7 @@ tracker_miner_stop (TrackerMiner *miner)
* Tells the miner to mark @subjects are writeback.
**/
void
-tracker_miner_writeback (TrackerMiner *miner,
+tracker_miner_writeback (TrackerMiner *miner,
const GStrv subjects)
{
g_return_if_fail (TRACKER_IS_MINER (miner));
diff --git a/src/tracker-miner-fs/tracker-miner-files.c b/src/tracker-miner-fs/tracker-miner-files.c
index 208cab0..4733cbb 100644
--- a/src/tracker-miner-fs/tracker-miner-files.c
+++ b/src/tracker-miner-fs/tracker-miner-files.c
@@ -542,6 +542,7 @@ init_mount_points_cb (GObject *source,
gpointer user_data)
{
GError *error = NULL;
+
tracker_miner_execute_update_finish (TRACKER_MINER (source),
result,
&error);
@@ -549,7 +550,7 @@ init_mount_points_cb (GObject *source,
if (error) {
g_critical ("Could not initialize currently active mount points: %s",
error->message);
- g_error (error);
+ g_error_free (error);
}
}
@@ -566,7 +567,7 @@ query_mount_points_cb (GObject *source,
GString *accumulator;
gint i;
GError *error = NULL;
- GPtrArray *query_results;
+ const GPtrArray *query_results;
#ifdef HAVE_HAL
GSList *udis, *u;
#endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]