tracker r2717 - trunk/src/tracker-indexer
- From: pvanhoof svn gnome org
- To: svn-commits-list gnome org
- Subject: tracker r2717 - trunk/src/tracker-indexer
- Date: Tue, 16 Dec 2008 16:59:35 +0000 (UTC)
Author: pvanhoof
Date: Tue Dec 16 16:59:34 2008
New Revision: 2717
URL: http://svn.gnome.org/viewvc/tracker?rev=2717&view=rev
Log:
Compilation fixes
Modified:
trunk/src/tracker-indexer/tracker-removable-device.c
Modified: trunk/src/tracker-indexer/tracker-removable-device.c
==============================================================================
--- trunk/src/tracker-indexer/tracker-removable-device.c (original)
+++ trunk/src/tracker-indexer/tracker-removable-device.c Tue Dec 16 16:59:34 2008
@@ -312,10 +312,10 @@
statement = g_new0 (raptor_statement, 1);
- statement->subject = (void *) raptor_new_uri (about_uri);
+ statement->subject = (void *) raptor_new_uri ((const unsigned char *) about_uri);
statement->subject_type = RAPTOR_IDENTIFIER_TYPE_RESOURCE;
- statement->predicate = (void *) raptor_new_uri (key);
+ statement->predicate = (void *) raptor_new_uri ((const unsigned char *) key);
statement->predicate_type = RAPTOR_IDENTIFIER_TYPE_RESOURCE;
statement->object = (unsigned char *) g_strdup (value);
@@ -401,7 +401,7 @@
RAPTOR_FEATURE_ALLOW_NON_NS_ATTRIBUTES, 1);
muri = g_strdup_printf ("file://%s/base", mount_point);
- suri = raptor_new_uri (muri);
+ suri = raptor_new_uri ((const unsigned char *) muri);
g_free (muri);
raptor_serialize_start_to_file_handle (info->serializer,
@@ -432,9 +432,9 @@
const gchar *rdf_type)
{
#ifdef HAVE_RAPTOR
- gchar *file, *about_uri;
+ gchar *file, *about_uri, *muri;
FILE *target_file;
- raptor_uri *suri;
+ raptor_uri *suri = NULL;
raptor_serializer *serializer;
AddMetadataInfo *info;
@@ -463,6 +463,10 @@
raptor_serializer_set_feature (serializer,
RAPTOR_FEATURE_WRITE_BASE_URI, 0);
+ muri = g_strdup_printf ("file://%s/base", mount_point);
+ suri = raptor_new_uri ((const unsigned char *) muri);
+ g_free (muri);
+
raptor_serialize_start_to_file_handle (serializer,
suri, target_file);
@@ -474,6 +478,7 @@
set_metadata ("rdf:type", rdf_type, info);
set_metadata (NULL, NULL, info);
+ raptor_free_uri (suri);
g_slice_free (AddMetadataInfo, info);
g_free (about_uri);
raptor_serialize_end (serializer);
@@ -496,7 +501,6 @@
gchar *file, *about_uri, *to_uri, *muri;
FILE *target_file;
raptor_uri *suri;
- raptor_statement *statement;
raptor_serializer *serializer;
AddMetadataInfo *info;
@@ -528,7 +532,7 @@
to_uri = g_strdup (to_path+strlen (mount_point)+1);
muri = g_strdup_printf ("file://%s/", mount_point);
- suri = raptor_new_uri (muri);
+ suri = raptor_new_uri ((const unsigned char *) muri);
g_free (muri);
raptor_serialize_start_to_file_handle (serializer,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]