Index: trunk/psModules/test/camera/tap_pmHDU.c
===================================================================
--- trunk/psModules/test/camera/tap_pmHDU.c	(revision 15993)
+++ trunk/psModules/test/camera/tap_pmHDU.c	(revision 21220)
@@ -73,10 +73,9 @@
         psFree(header);
         psFree(image);
-        bool rc = pmHDUWrite(NULL, fitsFile);
+        bool rc = pmHDUWrite(NULL, fitsFile, NULL);
         ok(rc == false, "pmHDUWrite() returned FALSE with NULL psHDU as input");
         psFitsClose(fitsFile);
         ok(!psMemCheckLeaks (id, NULL, NULL, false), "no memory leaks");
     }
-
 
     // Test pmHDUWrite() with NULL psFits input argument
@@ -91,10 +90,9 @@
 	}
         ok(rc == true, "pmConfigFileRead() was successful");
-        rc = pmHDUWrite(hdu, NULL);
+        rc = pmHDUWrite(hdu, NULL, NULL);
         ok(rc == false, "pmHDUWrite() returned FALSE with NULL psFits file as input");
         psFree(hdu);
         ok(!psMemCheckLeaks (id, NULL, NULL, false), "no memory leaks");
     }
-
 
     // Test pmHDURead() with NULL pmHDU input argument
@@ -157,5 +155,5 @@
 	}
         // 3. Use pmHDUWrite() to write that header to the FITS file
-        rc = pmHDUWrite(hdu, fitsFileW);
+        rc = pmHDUWrite(hdu, fitsFileW, NULL);
         ok(rc == true, "pmHDUWrite() returned TRUE");
         // 4. Close the FITS file, free memory
@@ -208,5 +206,5 @@
         psFree(header);
         psFree(image);
-        bool rc = pmHDUWriteWeight(NULL, fitsFile);
+        bool rc = pmHDUWriteWeight(NULL, fitsFile, NULL);
         ok(rc == false, "pmHDUWriteWeight() returned FALSE with NULL psHDU as input");
         psFitsClose(fitsFile);
@@ -226,5 +224,5 @@
 	}
         ok(rc == true, "pmConfigFileRead() was successful");
-        rc = pmHDUWriteWeight(hdu, NULL);
+        rc = pmHDUWriteWeight(hdu, NULL, NULL);
         ok(rc == false, "pmHDUWriteWeight    () returned FALSE with NULL psFits file as input");
         psFree(hdu);
@@ -292,5 +290,5 @@
 	}
         // 3. Use pmHDUWriteWeight() to write that header to the FITS file
-        rc = pmHDUWriteWeight(hdu, fitsFileW);
+        rc = pmHDUWriteWeight(hdu, fitsFileW, NULL);
         ok(rc == true, "pmHDUWriteWeight() returned TRUE");
         // 4. Close the FITS file, free memory
@@ -343,5 +341,5 @@
         psFree(header);
         psFree(image);
-        bool rc = pmHDUWriteMask(NULL, fitsFile);
+        bool rc = pmHDUWriteMask(NULL, fitsFile, NULL);
         ok(rc == false, "pmHDUWriteMask() returned FALSE with NULL psHDU as input");
         psFitsClose(fitsFile);
@@ -361,5 +359,5 @@
 	}
         ok(rc == true, "pmConfigFileRead() was successful");
-        rc = pmHDUWriteMask(hdu, NULL);
+        rc = pmHDUWriteMask(hdu, NULL, NULL);
         ok(rc == false, "pmHDUWriteMask() returned FALSE with NULL psFits file as input");
         psFree(hdu);
@@ -427,5 +425,5 @@
 	}
         // 3. Use pmHDUWriteMask() to write that header to the FITS file
-        rc = pmHDUWriteMask(hdu, fitsFileW);
+        rc = pmHDUWriteMask(hdu, fitsFileW, NULL);
         ok(rc == true, "pmHDUWriteMask() returned TRUE");
         // 4. Close the FITS file, free memory
@@ -520,5 +518,5 @@
 	    }
             ok(rc == true, "pmConfigFileRead() was successful");
-            rc = pmHDUWrite(hdu, fitsFileW);
+            rc = pmHDUWrite(hdu, fitsFileW, NULL);
             ok(rc == true, "pmHDUWrite() successfully wrote the header");
             psFree(hdu);
