comparison src/format_raw.c @ 749:f606e8962329

Silent few warnings that appeared when using --disable-exiv2 configure option.
author zas_
date Fri, 23 May 2008 23:18:40 +0000
parents fbebf5cf4a55
children 4fe8f9656107
comparison
equal deleted inserted replaced
748:1758c34f13fe 749:f606e8962329
76 static FormatExifEntry format_exif_list[] = { 76 static FormatExifEntry format_exif_list[] = {
77 FORMAT_EXIF_CANON, 77 FORMAT_EXIF_CANON,
78 FORMAT_EXIF_FUJI, 78 FORMAT_EXIF_FUJI,
79 FORMAT_EXIF_NIKON, 79 FORMAT_EXIF_NIKON,
80 FORMAT_EXIF_OLYMPUS, 80 FORMAT_EXIF_OLYMPUS,
81 { 0, NULL, 0, NULL } 81 { 0, NULL, 0, NULL, NULL }
82 }; 82 };
83 83
84 84
85 static guint tiff_table(unsigned char *data, const guint len, guint offset, ExifByteOrder bo, 85 static guint tiff_table(unsigned char *data, const guint len, guint offset, ExifByteOrder bo,
86 guint tag, ExifFormatType type, 86 guint tag, ExifFormatType type,
361 log_printf("Failed to unmap file %d\n", fd); 361 log_printf("Failed to unmap file %d\n", fd);
362 } 362 }
363 363
364 if (success && image_offset) 364 if (success && image_offset)
365 { 365 {
366 if (lseek(fd, *image_offset, SEEK_SET) != *image_offset) 366 if (lseek(fd, *image_offset, SEEK_SET) != (off_t) *image_offset)
367 { 367 {
368 log_printf("Failed to seek to embedded image\n"); 368 log_printf("Failed to seek to embedded image\n");
369 369
370 *image_offset = 0; 370 *image_offset = 0;
371 if (*exif_offset) *exif_offset = 0; 371 if (*exif_offset) *exif_offset = 0;