[gnome-documents] lib: trivial cleanups



commit 54423089e7d0c1cc3b3abb5637c8f9a8364907b3
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Mon Jun 4 16:55:32 2012 -0400

    lib: trivial cleanups

 src/lib/gd-pdf-loader.c |    2 --
 src/lib/gd-utils.c      |    2 +-
 2 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/src/lib/gd-pdf-loader.c b/src/lib/gd-pdf-loader.c
index e4a57e0..16fccbe 100644
--- a/src/lib/gd-pdf-loader.c
+++ b/src/lib/gd-pdf-loader.c
@@ -383,7 +383,6 @@ pdf_load_job_gdata_refresh_cache (PdfLoadJob *job)
 {
   GDataDownloadStream *stream;
   GError *error = NULL;
-  GFile *pdf_file;
 
   stream = gdata_documents_document_download (GDATA_DOCUMENTS_DOCUMENT (job->gdata_entry),
                                               GDATA_DOCUMENTS_SERVICE (job->gdata_service),
@@ -410,7 +409,6 @@ zpj_download_stream_ready (GObject *source,
                        gpointer user_data)
 {
   GError *error = NULL;
-  GFile *pdf_file;
   PdfLoadJob *job = (PdfLoadJob *) user_data;
   const gchar *name;
   const gchar *extension;
diff --git a/src/lib/gd-utils.c b/src/lib/gd-utils.c
index 9efc12a..42ba69c 100644
--- a/src/lib/gd-utils.c
+++ b/src/lib/gd-utils.c
@@ -388,7 +388,7 @@ gd_filename_strip_extension (const char * filename_with_extension)
 	}
 
 	filename = g_strdup (filename_with_extension);
-	end = gd_filename_get_extension_offset (filename);
+	end = (gchar *) gd_filename_get_extension_offset (filename);
 
 	if (end && end != filename) {
 		*end = '\0';



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