Index: trunk/psphot/src/psphotOutput.c
===================================================================
--- trunk/psphot/src/psphotOutput.c	(revision 4949)
+++ trunk/psphot/src/psphotOutput.c	(revision 4954)
@@ -372,18 +372,18 @@
 
 // write the peaks to an output file
-bool psPeaksWriteText (psArray *sources, char *filename) {
+bool pmPeaksWriteText (psArray *sources, char *filename) {
 
     int i;
     FILE *f;
-    psPeak *peak;
+    pmPeak *peak;
 	
     f = fopen (filename, "w");
     if (f == NULL) {
-	psLogMsg ("psPeaksWriteText", 3, "can't open output file for peaks%s\n", filename);
-	return false;
-    }
-
-    for (i = 0; i < sources->n; i++) {
-	peak = (psPeak *) sources->data[i];
+	psLogMsg ("pmPeaksWriteText", 3, "can't open output file for peaks%s\n", filename);
+	return false;
+    }
+
+    for (i = 0; i < sources->n; i++) {
+	peak = (pmPeak *) sources->data[i];
 	if (peak == NULL) continue;
 	fprintf (f, "%5d %5d  %7.1f\n", 
@@ -638,5 +638,5 @@
     unlink (filename);
     psFits *fits = psFitsAlloc (filename);
-    psFitsWriteImage (fits, header, image, 0, NULL);
+    psFitsWriteImage (fits, header, image, 0);
     psFree (fits);
     return (TRUE);
