diff src/gif_io.c @ 771:943eaba38521

[xemacs-hg @ 2002-03-13 08:51:24 by ben] The big ben-mule-21-5 check-in! Various files were added and deleted. See CHANGES-ben-mule. There are still some test suite failures. No crashes, though. Many of the failures have to do with problems in the test suite itself rather than in the actual code. I'll be addressing these in the next day or so -- none of the test suite failures are at all critical. Meanwhile I'll be trying to address the biggest issues -- i.e. build or run failures, which will almost certainly happen on various platforms. All comments should be sent to ben@xemacs.org -- use a Cc: if necessary when sending to mailing lists. There will be pre- and post- tags, something like pre-ben-mule-21-5-merge-in, and post-ben-mule-21-5-merge-in.
author ben
date Wed, 13 Mar 2002 08:54:06 +0000
parents fdefd0186b75
children 61855263cb07
line wrap: on
line diff
--- a/src/gif_io.c	Fri Mar 08 13:33:14 2002 +0000
+++ b/src/gif_io.c	Wed Mar 13 08:54:06 2002 +0000
@@ -101,22 +101,22 @@
 Bytecount GifStdRead(GifByteType *buf, Bytecount size, VoidPtr method_data)
 {
   GifStdIODataType *IOtype = (GifStdIODataType*)method_data;
-  return (fread(buf, 1, size, IOtype->File));
+  return (retry_fread(buf, 1, size, IOtype->File));
 }
 
 Bytecount GifStdWrite(GifByteType *buf, Bytecount size, VoidPtr method_data)
 {
   GifStdIODataType *IOtype = (GifStdIODataType*)method_data;
-  return (fwrite(buf, 1, size, IOtype->File));  
+  return (retry_fwrite(buf, 1, size, IOtype->File));  
 }
 
 int GifStdFileClose(VoidPtr method_data)
 {
   int ret;
   GifStdIODataType *IOtype = (GifStdIODataType*)method_data;
-  ret = fclose(IOtype->File);
+  ret = retry_fclose(IOtype->File);
   if (ret == 0 && IOtype->FileHandle != -1)
-    ret = close(IOtype->FileHandle);
+    ret = retry_close(IOtype->FileHandle);
   return ret;
 }
 
@@ -157,16 +157,16 @@
   "Undefined error!",
 };
 
-const char *GetGifError(int error);
+const char *GetGifError(int errore);
 
 /*****************************************************************************
 * Get the last GIF error in human-readable form.			     *
 *****************************************************************************/
-const char *GetGifError(int error)
+const char *GetGifError(int errore)
 {
     char *Err;
 
-    switch(error) {
+    switch(errore) {
 	case D_GIF_ERR_OPEN_FAILED:
 	    Err = GifErrorString[0];
 	    break;