Index: trunk/psLib/test/fits/tst_psFits.c
===================================================================
--- trunk/psLib/test/fits/tst_psFits.c	(revision 6767)
+++ trunk/psLib/test/fits/tst_psFits.c	(revision 6912)
@@ -6,6 +6,6 @@
 *  @author Robert DeSonia, MHPCC
 *
-*  @version $Revision: 1.19 $ $Name: not supported by cvs2svn $
-*  @date $Date: 2006-04-04 19:52:47 $
+*  @version $Revision: 1.20 $ $Name: not supported by cvs2svn $
+*  @date $Date: 2006-04-20 01:13:11 $
 *
 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
@@ -391,5 +391,6 @@
         // check that the image is associated to the extension moved, i.e.,
         // did we really move to the proper extension?
-        psImage* image = psFitsReadImage(NULL, fits,region,0);
+        psImage* image = NULL;
+        image = psFitsReadImage(fits,region,0);
 
         if (image == NULL || abs(image->data.F32[0][0] - (float)lcv) > FLT_EPSILON) {
@@ -424,5 +425,6 @@
         // check that the image is associated to the extension moved, i.e.,
         // did we really move to the proper extension?
-        psImage* image = psFitsReadImage(NULL, fits,region,0);
+        psImage* image = NULL;
+        image = psFitsReadImage(fits,region,0);
 
         if (abs(image->data.F32[0][0] - (float)lcv) > FLT_EPSILON) {
@@ -526,6 +528,6 @@
         // check that the image is associated to the extension moved, i.e.,
         // did we really move to the proper extension?
-        psImage* image = psFitsReadImage(NULL, fits,region,0);
-
+        psImage* image = NULL;
+        image = psFitsReadImage(fits,region,0);
         if (image == NULL || abs(image->data.F32[0][0] - (float)lcv) > FLT_EPSILON) {
             psError(PS_ERR_UNKNOWN, true,
@@ -548,5 +550,6 @@
         // check that the image is associated to the extension moved, i.e.,
         // did we really move to the proper extension?
-        psImage* image = psFitsReadImage(NULL, fits,region,0);
+        psImage* image = NULL;
+        image = psFitsReadImage(fits,region,0);
 
         if (abs(image->data.F32[0][0] - (float)lcv) > FLT_EPSILON) {
@@ -580,5 +583,6 @@
         // check that the image is associated to the extension moved, i.e.,
         // did we really move to the proper extension?
-        psImage* image = psFitsReadImage(NULL, fits,region,0);
+        psImage* image = NULL;
+        image = psFitsReadImage(fits,region,0);
 
         if (image == NULL || abs(image->data.F32[0][0] - (float)lcv) > FLT_EPSILON) {
@@ -610,5 +614,6 @@
         // check that the image is associated to the extension moved, i.e.,
         // did we really move to the proper extension?
-        psImage* image = psFitsReadImage(NULL, fits,region,0);
+        psImage* image = NULL;
+        image = psFitsReadImage(fits,region,0);
 
         if (abs(image->data.F32[0][0] - (float)lcv) > FLT_EPSILON) {
@@ -1448,6 +1453,6 @@
         fits = psFitsOpen(filename,"r"); \
         psRegion reg = {readM0, readM, readN0, readN}; \
-        img = psFitsReadImage(img, fits, reg, 0); \
-        img3 = psFitsReadImage(img3, fits, reg, 1); \
+        img = psFitsReadImage(fits, reg, 0); \
+        img3 = psFitsReadImage(fits, reg, 1); \
         if (img3 == NULL) { \
             psError(PS_ERR_UNKNOWN, true,"Failed to read test image %s",filename); \
@@ -1477,6 +1482,6 @@
         img3 = NULL; \
         psFitsMoveExtNum(fits,1, false); \
-        img3 = psFitsReadImage(img3, fits, reg, 0); \
-        img = psFitsReadImage(img, fits, reg, 1); \
+        img3 = psFitsReadImage(fits, reg, 0); \
+        img = psFitsReadImage(fits, reg, 1); \
         if (img == NULL) { \
             psError(PS_ERR_UNKNOWN, true,"Failed to read test image %s",filename); \
@@ -1530,5 +1535,5 @@
                           0,0,0,0
                       };
-    if(psFitsReadImage(NULL,NULL,region,0) != NULL) {
+    if(psFitsReadImage(NULL,region,0) != NULL) {
         psError(PS_ERR_UNKNOWN,true,"Did not return NULL for NULL psFits");
         return 100;
@@ -1596,5 +1601,6 @@
     psRegion region = {0,0,0,0};
     fits = psFitsOpen("tmpImages/writeTest.fits","r");
-    img = psFitsReadImage(NULL, fits, region, 0);
+    img = NULL;
+    img = psFitsReadImage(fits, region, 0);
     if (img == NULL) {
         psError(PS_ERR_UNKNOWN, true,"Could not read in writeTest.fits.");
