summaryrefslogtreecommitdiffstats
path: root/tools/gifconv/gifread.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2002-06-19 13:06:57 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2002-06-19 13:06:57 (GMT)
commit6d7cbd13dce1ae24446ed84a88c64c68598dc6bf (patch)
tree9debd9624be08fb8ff72f91e2416ae853939e2fc /tools/gifconv/gifread.c
parenta00188dde45dfd59728e1e68ddbf6cad5e1d014c (diff)
downloadhdf5-6d7cbd13dce1ae24446ed84a88c64c68598dc6bf.zip
hdf5-6d7cbd13dce1ae24446ed84a88c64c68598dc6bf.tar.gz
hdf5-6d7cbd13dce1ae24446ed84a88c64c68598dc6bf.tar.bz2
[svn-r5668] Purpose:
Code cleanup Description: Turn on more warnings in the IRIX builds and clean them up. Platforms tested: IRIX64 6.5 (modi4) w/parallel, both -n32 and the default (-64?) mode
Diffstat (limited to 'tools/gifconv/gifread.c')
-rw-r--r--tools/gifconv/gifread.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/tools/gifconv/gifread.c b/tools/gifconv/gifread.c
index f2fefff..c7b7b96 100644
--- a/tools/gifconv/gifread.c
+++ b/tools/gifconv/gifread.c
@@ -2,6 +2,9 @@
#include <stdlib.h>
#include "gif.h"
+static BYTE *
+ReadDataSubBlocks(BYTE **MemGif2 , WORD *DSize);
+
int EndianOrder;
int i;
@@ -53,7 +56,7 @@ BYTE **MemGif2; /* GIF image file input FILE stream */
for (i = 0 ; i < 6 ; i++) {
GifHead->HeaderDump[i] = *(*MemGif2)++;
}
- if (strncmp(GifHead->HeaderDump , "GIF" , 3)) {
+ if (strncmp((const char *)GifHead->HeaderDump , "GIF" , 3)) {
printf("The file does not appear to be a valid GIF file.\n");
exit(-1);
}
@@ -352,7 +355,9 @@ WORD *DSize;
bufSize += (dataSize); /* Running total of the buffer size */
*DSize = bufSize;
- /* *ptr1++ = dataSize; /* Write the data count */
+#ifdef COMMENTED_OUT
+ *ptr1++ = dataSize; /* Write the data count */
+#endif /* COMMENTED_OUT */
while (dataSize--) /* Read/write the Plain Text data */
*ptr1++ = *(*MemGif2)++;
@@ -370,7 +375,6 @@ WORD *DSize;
}
- /**ptr1++ = (BYTE) NULL; /* Add NULL to simulate Terminator value */
*ptr1++ = '\0';
return(ptr2); /* Return a pointer to the sub-block data */