Index: branches/eam_branches/ipp-20101103/Ohana/src/opihi/dvo/find_matches.c
===================================================================
--- branches/eam_branches/ipp-20101103/Ohana/src/opihi/dvo/find_matches.c	(revision 29820)
+++ branches/eam_branches/ipp-20101103/Ohana/src/opihi/dvo/find_matches.c	(revision 29845)
@@ -80,5 +80,7 @@
   /* build spatial index (RA sort) referencing input array sequence */
   for (i = 0; i < Npoints; i++) {
-    X1[i] = Y1[i] = NAN;
+    // we need to have a finite number for the sort below; index == -1 entries are skipped
+    // in the matching process
+    X1[i] = Y1[i] = 0.0; 
     N1[i] = i;
     if (index[i] == -1) continue;
Index: branches/eam_branches/ipp-20101103/Ohana/src/relphot/src/SetSignals.c
===================================================================
--- branches/eam_branches/ipp-20101103/Ohana/src/relphot/src/SetSignals.c	(revision 29820)
+++ branches/eam_branches/ipp-20101103/Ohana/src/relphot/src/SetSignals.c	(revision 29845)
@@ -15,10 +15,10 @@
       return;
     }
-    Shutdown ("halted by signal (trapped)");
+    Shutdown ("%s","halted by signal (trapped)");
 }    
 
 void SetProtect (int mode) {
   Protect = mode;
-  if (Trapped && !Protect) Shutdown ("halted by signal (protect)");
+  if (Trapped && !Protect) Shutdown ("%s","halted by signal (protect)");
 }
 
Index: branches/eam_branches/ipp-20101103/Ohana/src/relphot/src/load_catalogs.c
===================================================================
--- branches/eam_branches/ipp-20101103/Ohana/src/relphot/src/load_catalogs.c	(revision 29820)
+++ branches/eam_branches/ipp-20101103/Ohana/src/relphot/src/load_catalogs.c	(revision 29845)
@@ -47,7 +47,6 @@
 
   fprintf (stderr, "using %d of %d stars (%d of %d measurements)\n", Nstar, Nstar_total, Nmeas, Nmeas_total);
-  if (Nstar < 1) {
-      Shutdown ("ERROR: no stars match the minimum requirements; exiting\n");
-  }
+  if (Nstar < 1) Shutdown ("%s", "ERROR: no stars match the minimum requirements; exiting \n");
+   
 
   // XXX consider only returning the populated catalogs
