diff src/dgif_lib.c @ 185:3d6bfa290dbd r20-3b19

Import from CVS: tag r20-3b19
author cvs
date Mon, 13 Aug 2007 09:55:28 +0200
parents 2d532a89d707
children b405438285a2
line wrap: on
line diff
--- a/src/dgif_lib.c	Mon Aug 13 09:54:24 2007 +0200
+++ b/src/dgif_lib.c	Mon Aug 13 09:55:28 2007 +0200
@@ -14,8 +14,8 @@
 
 #ifdef emacs
 #include <config.h>
-void *xmalloc (unsigned int size);
-void *xrealloc (void *ptr, unsigned int size);
+void *xmalloc (size_t size);
+void *xrealloc (void *ptr, size_t size);
 #ifdef ERROR_CHECK_MALLOC
 void *xfree_1 (void *);
 #define xfree xfree_1
@@ -325,7 +325,7 @@
 	    FreeMapObject(GifFile->Image.ColorMap);
 
 	GifFile->Image.ColorMap = MakeMapObject(1 << BitsPerPixel, NULL);
-    
+
 	/* Get the image local color map: */
 	for (i = 0; i < GifFile->Image.ColorMap->ColorCount; i++) {
 	    if (fread(Buf, 1, 3, Private->File) != 3) {
@@ -983,7 +983,7 @@
 		}
 #else
 	        /* Skip any extension blocks in the file. */
-	        if (DGifGetExtension (GifFile, &ExtCode, &ExtData) 
+	        if (DGifGetExtension (GifFile, &ExtCode, &ExtData)
 		    == GIF_ERROR)
 		    return GIF_ERROR;