Drop unused variables and associated code.
[geeqie.git] / src / format_canon.c
index 290b494..c50b40d 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * Geeqie
  * (C) 2005 John Ellis
- * Copyright (C) 2008 The Geeqie Team
+ * Copyright (C) 2008 - 2012 The Geeqie Team
  *
  * This software is released under the GNU General Public License (GNU GPL).
  * Please read the included file COPYING for more information.
@@ -43,8 +43,8 @@
  *-----------------------------------------------------------------------------
  */
 
-static gint canon_cr2_tiff_entry(guchar *data, const guint len, guint offset, ExifByteOrder bo,
-                                guint *image_offset, gint *jpeg_encoding)
+static gboolean canon_cr2_tiff_entry(guchar *data, const guint len, guint offset, ExifByteOrder bo,
+                                    guint *image_offset, gint *jpeg_encoding)
 {
        guint tag;
        guint type;
@@ -95,7 +95,7 @@ static gint canon_cr2_tiff_entry(guchar *data, const guint len, guint offset, Ex
 static gint canon_cr2_tiff_table(guchar *data, const guint len, guint offset, ExifByteOrder bo,
                                 guint *image_offset)
 {
-       gint jpeg_encoding = FALSE;
+       gboolean jpeg_encoding = FALSE;
        guint count;
        guint i;
 
@@ -117,8 +117,8 @@ static gint canon_cr2_tiff_table(guchar *data, const guint len, guint offset, Ex
        return exif_byte_get_int32(data + offset + count * EXIF_TIFD_SIZE, bo);
 }
 
-gint format_canon_raw_cr2(guchar *data, const guint len,
-                         guint *image_offset, guint *exif_offset)
+gboolean format_canon_raw_cr2(guchar *data, const guint len,
+                             guint *image_offset, guint *exif_offset)
 {
        guint jpeg_offset = 0;
        ExifByteOrder bo;
@@ -150,8 +150,8 @@ gint format_canon_raw_cr2(guchar *data, const guint len,
 #define CRW_HEADER_SIZE                26
 #define CRW_DIR_ENTRY_SIZE     10
 
-gint format_canon_raw_crw(guchar *data, const guint len,
-                         guint *image_offset, guint *exif_offset)
+gboolean format_canon_raw_crw(guchar *data, const guint len,
+                             guint *image_offset, guint *exif_offset)
 {
        guint block_offset;
        guint data_length;
@@ -601,8 +601,8 @@ static void canon_mknote_parse_convert(ExifData *exif)
 }
 #endif
 
-gint format_canon_makernote(ExifData *exif, guchar *tiff, guint offset,
-                           guint size, ExifByteOrder bo)
+gboolean format_canon_makernote(ExifData *exif, guchar *tiff, guint offset,
+                               guint size, ExifByteOrder bo)
 {
        ExifItem *item;