evas: remove warning.
authorcedric <cedric@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 30 Sep 2011 15:54:26 +0000 (15:54 +0000)
committercedric <cedric@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 30 Sep 2011 15:54:26 +0000 (15:54 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@63728 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/modules/loaders/jpeg/evas_image_load_jpeg.c

index 6232767..627f763 100644 (file)
@@ -166,17 +166,16 @@ static const unsigned char App1[] = {0xff, 0xe1};
 typedef enum {
      EXIF_BYTE_ALIGN_II,
      EXIF_BYTE_ALIGN_MM
-}ExifByteAlign;
+} ExifByteAlign;
 
 static int
 _get_orientation(void *map, size_t length)
 {
-   int size;
    char *buf;
-   unsigned char orientation[2];
+   char orientation[2];
    ExifByteAlign byte_align;
-   int num_directory = 0;
-   int i, j;
+   unsigned int num_directory = 0;
+   unsigned int i, j;
    int direction;
 
    /* open file and get 22 byte frome file */
@@ -213,9 +212,6 @@ _get_orientation(void *map, size_t length)
 
    if (length < (12 * num_directory + 22)) return 0;
 
-
-   /* we get all info from file, close file first */
-
    j = 0;
 
    for (i = 0; i < num_directory; i++ )