Index: trunk/psphot/src/psphotMergeSources.c
===================================================================
--- trunk/psphot/src/psphotMergeSources.c	(revision 20084)
+++ trunk/psphot/src/psphotMergeSources.c	(revision 20085)
@@ -52,5 +52,5 @@
 }
 
-pmDetections *detections = psphotLoadPSFSources (pmConfig *config, const pmFPAview *view) {
+pmDetections *psphotLoadPSFSources (pmConfig *config, const pmFPAview *view) {
 
     // find the currently selected readout
@@ -87,5 +87,5 @@
     }
 
-    psLogMsg ("psphot", 3, "%ld PSF sources loaded", detections->peaks->nn);
+    psLogMsg ("psphot", 3, "%ld PSF sources loaded", detections->peaks->n);
 
     return detections;
Index: trunk/psphot/src/psphotReadoutFindPSF.c
===================================================================
--- trunk/psphot/src/psphotReadoutFindPSF.c	(revision 20084)
+++ trunk/psphot/src/psphotReadoutFindPSF.c	(revision 20085)
@@ -51,5 +51,5 @@
     }
 
-    psf = psphotChoosePSF (readout, sources, recipe);
+    pmPSF *psf = psphotChoosePSF (readout, sources, recipe);
     if (psf == NULL) {
       psLogMsg ("psphot", 3, "failure to construct a psf model");
