summaryrefslogtreecommitdiffstats
path: root/tools/gifconv
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2001-11-04 03:23:30 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2001-11-04 03:23:30 (GMT)
commit965e3bc3e20cefeb81b0b88002c1dc42d197c2ff (patch)
tree6fe49900b179c79bf8904760ce6b60953d70021e /tools/gifconv
parentbd74bf3ff0139edfcd565989458cbbcaeaf6bfb6 (diff)
downloadhdf5-965e3bc3e20cefeb81b0b88002c1dc42d197c2ff.zip
hdf5-965e3bc3e20cefeb81b0b88002c1dc42d197c2ff.tar.gz
hdf5-965e3bc3e20cefeb81b0b88002c1dc42d197c2ff.tar.bz2
[svn-r4591] Purpose:
Code cleanup Description: Fix a bunch of warnings Platforms tested: Linux 2.2 (eirene)
Diffstat (limited to 'tools/gifconv')
-rw-r--r--tools/gifconv/decompress.c4
-rw-r--r--tools/gifconv/gif.h5
-rw-r--r--tools/gifconv/hdf2gif.c4
3 files changed, 9 insertions, 4 deletions
diff --git a/tools/gifconv/decompress.c b/tools/gifconv/decompress.c
index eafa133..6cc5468 100644
--- a/tools/gifconv/decompress.c
+++ b/tools/gifconv/decompress.c
@@ -235,7 +235,7 @@ Decompress(GIFIMAGEDESC *GifImageDesc, GIFHEAD *GifHead)
FreeCode = FirstFree;
CurCode = OldCode = Code = ReadCode();
FinChar = CurCode & DataMask;
- AddToPixel(FinChar);
+ AddToPixel((BYTE)FinChar);
} else {
/*
* If not a clear code, then must be data: save same as CurCode
@@ -275,7 +275,7 @@ Decompress(GIFIMAGEDESC *GifImageDesc, GIFHEAD *GifHead)
* stacked LIFO, so deal with it that way...
*/
for (i = OutCount - 1; i >= 0; i--)
- AddToPixel(OutCode[i]);
+ AddToPixel((BYTE)OutCode[i]);
OutCount = 0;
diff --git a/tools/gifconv/gif.h b/tools/gifconv/gif.h
index 21ce502..a939e17 100644
--- a/tools/gifconv/gif.h
+++ b/tools/gifconv/gif.h
@@ -144,6 +144,11 @@ int ReadGifPlainText(GIFPLAINTEXT *, BYTE **);
int ReadGifApplication(GIFAPPLICATION *, BYTE **);
int ReadGifComment(GIFCOMMENT *, BYTE **);
+/* HDFGIFWR.C */
+int hdfWriteGIF(FILE *fp, BYTE *pic, int ptype, int w, int h, BYTE *rmap,
+ BYTE *gmap, BYTE *bmap, BYTE *pc2ncmap, int numcols,
+ int colorstyle, int BitsPerPixel);
+
/* WRITEHDF.C */
int WriteHDF(GIFTOMEM , CHAR * , CHAR *);
diff --git a/tools/gifconv/hdf2gif.c b/tools/gifconv/hdf2gif.c
index 9b5eebc..c2ddb10 100644
--- a/tools/gifconv/hdf2gif.c
+++ b/tools/gifconv/hdf2gif.c
@@ -106,8 +106,8 @@ int main(int argc , char **argv)
return 0;
}
- memset(image_name_arr , NULL , MAX_NUMBER_IMAGES);
- memset(pal_name_arr , NULL , MAX_NUMBER_IMAGES);
+ memset(image_name_arr , 0 , MAX_NUMBER_IMAGES);
+ memset(pal_name_arr , 0 , MAX_NUMBER_IMAGES);
HDFName = (CHAR *)malloc (strlen(argv[1]) + 1);
GIFName = (CHAR *)malloc (strlen(argv[2]) + 1);