summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Meier <maekke@gentoo.org>2008-02-02 10:14:26 +0000
committerMarkus Meier <maekke@gentoo.org>2008-02-02 10:14:26 +0000
commit5daf2cdf14d548b668302353971bd3a4411f3382 (patch)
tree5918c48cf843288729fd7eb70eee19f95ed5eabf /media-gfx/jhead/files
parentremove depend.apache usage wrt #208033 (diff)
downloadgentoo-2-5daf2cdf14d548b668302353971bd3a4411f3382.tar.gz
gentoo-2-5daf2cdf14d548b668302353971bd3a4411f3382.tar.bz2
gentoo-2-5daf2cdf14d548b668302353971bd3a4411f3382.zip
old
(Portage version: 2.1.4)
Diffstat (limited to 'media-gfx/jhead/files')
-rw-r--r--media-gfx/jhead/files/jhead-2.4-gcc4.diff138
-rw-r--r--media-gfx/jhead/files/jhead-2.5-gcc4.diff36
2 files changed, 0 insertions, 174 deletions
diff --git a/media-gfx/jhead/files/jhead-2.4-gcc4.diff b/media-gfx/jhead/files/jhead-2.4-gcc4.diff
deleted file mode 100644
index ec8e18915424..000000000000
--- a/media-gfx/jhead/files/jhead-2.4-gcc4.diff
+++ /dev/null
@@ -1,138 +0,0 @@
-diff --exclude='*~' -Naur jhead-2.4.orig/exif.c jhead-2.4/exif.c
---- jhead-2.4.orig/exif.c 2005-09-10 15:38:49.000000000 -0300
-+++ jhead-2.4/exif.c 2005-09-10 15:51:45.000000000 -0300
-@@ -395,7 +395,7 @@
- unsigned char * ValuePtr;
- int ByteCount;
- char * DirEntry;
-- DirEntry = DIR_ENTRY_ADDR(DirStart, de);
-+ DirEntry = (char *)DIR_ENTRY_ADDR(DirStart, de);
-
- Tag = Get16u(DirEntry);
- Format = Get16u(DirEntry+2);
-@@ -421,7 +421,7 @@
- ValuePtr = OffsetBase+OffsetVal;
- }else{
- // 4 bytes or less and value is in the dir entry itself
-- ValuePtr = DirEntry+8;
-+ ValuePtr = (uchar *)DirEntry+8;
- }
-
- if (LastExifRefd < ValuePtr+ByteCount){
-@@ -493,17 +493,17 @@
- switch(Tag){
-
- case TAG_MAKE:
-- strncpy(ImageInfo.CameraMake, ValuePtr, 31);
-+ strncpy(ImageInfo.CameraMake, (char *)ValuePtr, 31);
- break;
-
- case TAG_MODEL:
-- strncpy(ImageInfo.CameraModel, ValuePtr, 39);
-+ strncpy(ImageInfo.CameraModel, (char *)ValuePtr, 39);
- break;
-
-
- case TAG_DATETIME_ORIGINAL:
- // If we get a DATETIME_ORIGINAL, we use that one.
-- strncpy(ImageInfo.DateTime, ValuePtr, 19);
-+ strncpy(ImageInfo.DateTime, (char *)ValuePtr, 19);
- // Fallthru...
-
- case TAG_DATETIME_DIGITIZED:
-@@ -511,14 +511,14 @@
- if (!isdigit(ImageInfo.DateTime[0])){
- // If we don't already have a DATETIME_ORIGINAL, use whatever
- // time fields we may have.
-- strncpy(ImageInfo.DateTime, ValuePtr, 19);
-+ strncpy(ImageInfo.DateTime, (char *)ValuePtr, 19);
- }
-
- if (ImageInfo.numDateTimeTags >= MAX_DATE_COPIES){
- ErrNonfatal("More than %d date fields! This is nuts", MAX_DATE_COPIES, 0);
- break;
- }
-- ImageInfo.DateTimePointers[ImageInfo.numDateTimeTags++] = ValuePtr;
-+ ImageInfo.DateTimePointers[ImageInfo.numDateTimeTags++] = (char *)ValuePtr;
- break;
-
-
-@@ -540,13 +540,13 @@
- int c;
- c = (ValuePtr)[a];
- if (c != '\0' && c != ' '){
-- strncpy(ImageInfo.Comments, a+ValuePtr, 199);
-+ strncpy(ImageInfo.Comments, (char *)(a+ValuePtr), 199);
- break;
- }
- }
-
- }else{
-- strncpy(ImageInfo.Comments, ValuePtr, 199);
-+ strncpy(ImageInfo.Comments, (char *)ValuePtr, 199);
- }
- break;
-
-@@ -927,7 +927,7 @@
- for (de=0;de<NumDirEntries;de++){
- int Tag;
- char * DirEntry;
-- DirEntry = DIR_ENTRY_ADDR(DirWithThumbnailPtrs, de);
-+ DirEntry = (char *)DIR_ENTRY_ADDR(DirWithThumbnailPtrs, de);
- Tag = Get16u(DirEntry);
- if (Tag == TAG_THUMBNAIL_OFFSET || Tag == TAG_THUMBNAIL_LENGTH){
- // We remove data out of the exif directory by doing a memmove on the rest
-diff --exclude='*~' -Naur jhead-2.4.orig/gpsinfo.c jhead-2.4/gpsinfo.c
---- jhead-2.4.orig/gpsinfo.c 2005-09-10 15:38:49.000000000 -0300
-+++ jhead-2.4/gpsinfo.c 2005-09-10 15:48:24.000000000 -0300
-@@ -84,7 +84,7 @@
- int ComponentSize;
- unsigned ByteCount;
- char * DirEntry;
-- DirEntry = DIR_ENTRY_ADDR(DirStart, de);
-+ DirEntry = (char *)DIR_ENTRY_ADDR(DirStart, de);
-
- Tag = Get16u(DirEntry);
- Format = Get16u(DirEntry+2);
-@@ -111,7 +111,7 @@
- ValuePtr = OffsetBase+OffsetVal;
- }else{
- // 4 bytes or less and value is in the dir entry itself
-- ValuePtr = DirEntry+8;
-+ ValuePtr = (uchar *)DirEntry+8;
- }
-
- switch(Tag){
-diff --exclude='*~' -Naur jhead-2.4.orig/jpgfile.c jhead-2.4/jpgfile.c
---- jhead-2.4.orig/jpgfile.c 2005-09-10 15:38:49.000000000 -0300
-+++ jhead-2.4/jpgfile.c 2005-09-10 15:41:41.000000000 -0300
-@@ -245,7 +245,7 @@
- // that uses marker 31 for non exif stuff. Thus make sure
- // it says 'Exif' in the section before treating it as exif.
- if ((ReadMode & READ_EXIF) && memcmp(Data+2, "Exif", 4) == 0){
-- process_EXIF((char *)Data, itemlen);
-+ process_EXIF(Data, itemlen);
- }else{
- // Discard this section.
- free(Sections[--SectionsRead].Data);
-diff --exclude='*~' -Naur jhead-2.4.orig/makernote.c jhead-2.4/makernote.c
---- jhead-2.4.orig/makernote.c 2005-09-10 15:38:49.000000000 -0300
-+++ jhead-2.4/makernote.c 2005-09-10 15:49:28.000000000 -0300
-@@ -48,7 +48,7 @@
- unsigned char * ValuePtr;
- int ByteCount;
- char * DirEntry;
-- DirEntry = DIR_ENTRY_ADDR(DirStart, de);
-+ DirEntry = (char *)DIR_ENTRY_ADDR(DirStart, de);
-
- Tag = Get16u(DirEntry);
- Format = Get16u(DirEntry+2);
-@@ -74,7 +74,7 @@
- ValuePtr = OffsetBase+OffsetVal;
- }else{
- // 4 bytes or less and value is in the dir entry itself
-- ValuePtr = DirEntry+8;
-+ ValuePtr = (uchar *)DirEntry+8;
- }
-
- if (ShowTags){
diff --git a/media-gfx/jhead/files/jhead-2.5-gcc4.diff b/media-gfx/jhead/files/jhead-2.5-gcc4.diff
deleted file mode 100644
index 1ee3aec3b797..000000000000
--- a/media-gfx/jhead/files/jhead-2.5-gcc4.diff
+++ /dev/null
@@ -1,36 +0,0 @@
-diff -Naur jhead-2.5.orig/exif.c jhead-2.5/exif.c
---- jhead-2.5.orig/exif.c 2006-01-11 22:55:20.000000000 +0100
-+++ jhead-2.5/exif.c 2006-01-11 22:59:36.000000000 +0100
-@@ -329,7 +329,7 @@
- ByteCount -= s;
- if (ByteCount <= 0) break;
- printf(", ");
-- ((char *)ValuePtr) += s;
-+ ValuePtr = (char *)ValuePtr + s;
- }
- if (n >= 16) printf("...");
- }
-diff -Naur jhead-2.5.orig/jhead.c jhead-2.5/jhead.c
---- jhead-2.5.orig/jhead.c 2006-01-11 22:55:20.000000000 +0100
-+++ jhead-2.5/jhead.c 2006-01-11 22:58:51.000000000 +0100
-@@ -932,7 +932,7 @@
-
- for (a = 0; a < ImageInfo.numDateTimeTags; a++) {
- char * Pointer;
-- Pointer = ExifSection->Data+ImageInfo.DateTimeOffsets[a]+8;
-+ Pointer = (char *)ExifSection->Data+ImageInfo.DateTimeOffsets[a]+8;
- memcpy(Pointer, TempBuf, 19);
- }
-
-diff -Naur jhead-2.5.orig/jpgfile.c jhead-2.5/jpgfile.c
---- jhead-2.5.orig/jpgfile.c 2006-01-11 22:55:20.000000000 +0100
-+++ jhead-2.5/jpgfile.c 2006-01-11 22:58:07.000000000 +0100
-@@ -346,7 +346,7 @@
- char * ThumbnailPointer;
- Section_t * ExifSection;
- ExifSection = FindSection(M_EXIF);
-- ThumbnailPointer = ExifSection->Data+ImageInfo.ThumbnailOffset+8;
-+ ThumbnailPointer = (char *)ExifSection->Data+ImageInfo.ThumbnailOffset+8;
-
- fwrite(ThumbnailPointer, ImageInfo.ThumbnailSize ,1, ThumbnailFile);
- fclose(ThumbnailFile);