Index: trunk/psLib/src/image/psImageIO.c
===================================================================
--- trunk/psLib/src/image/psImageIO.c	(revision 1073)
+++ trunk/psLib/src/image/psImageIO.c	(revision 1241)
@@ -7,6 +7,6 @@
  *  @author Robert DeSonia, MHPCC
  *
- *  @version $Revision: 1.4 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2004-06-23 23:00:15 $
+ *  @version $Revision: 1.5 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2004-07-19 22:01:19 $
  *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -203,6 +203,6 @@
 
 
-int psImageWriteSection(psImage* input, int col0,int row0,int z,
-                        char* extname, int extnum, char* filename)
+bool psImageWriteSection(psImage* input, int col0,int row0,int z,
+                         char* extname, int extnum, char* filename)
 {
     int         numCols = 0;
@@ -226,5 +226,5 @@
         psError(__func__, "Can not write %s.  Input psImage is NULL.",
                 filename);
-        return 1;
+        return false;
     }
 
@@ -271,5 +271,5 @@
         psError(__func__, "psImage datatype (%d) not supported.  File %s not written.",
                 input->type.type,filename);
-        return 1;
+        return false;
     }
 
@@ -281,5 +281,5 @@
             psError(__func__,"Could not open file '%s'. FITS error:%s",
                     filename, fitsErr);
-            return 2;
+            return false;
         }
 
@@ -292,5 +292,5 @@
                 psError(__func__,"Could not index to '%s' HDU for file %s. (%s)",
                         extname, filename, fitsErr);
-                return 3;
+                return false;
             }
         } else {
@@ -302,5 +302,5 @@
                 psError(__func__,"extnum (%d) must not exceed number of HDUs (%d) by more than one.",
                         extnum, numHDUs);
-                return 3;
+                return false;
             } else if (numHDUs == extnum) {
                 createNewHDU = true;
@@ -311,5 +311,5 @@
                 psError(__func__,"Could not index to HDU #%d for file %s. (%s)",
                         extnum, filename, fitsErr);
-                return 3;
+                return false;
             }
         }
@@ -322,5 +322,5 @@
             psError(__func__,"Could not create file '%s'. (%s)",
                     filename, fitsErr);
-            return 5;
+            return false;
         }
         createNewHDU = true;
@@ -338,5 +338,5 @@
             psError(__func__,"Could not create image HDU in FITS file '%s'. %s",
                     filename, fitsErr);
-            return 5;
+            return false;
         }
 
@@ -354,5 +354,5 @@
                 psError(__func__,"Could not create EXTNAME keyword in FITS file '%s'. (%s)",
                         filename, fitsErr);
-                return 5;
+                return false;
             }
         }
@@ -373,5 +373,5 @@
         psError(__func__, "Could not write image data to '%s'. (%s)",
                 filename, fitsErr);
-        return 6;
+        return false;
     }
 
@@ -379,4 +379,4 @@
     (void)fits_close_file(fptr, &status);
 
-    return 0;
+    return true;
 }
