Index: trunk/Ohana/src/imregister/detrend/select.c
===================================================================
--- trunk/Ohana/src/imregister/detrend/select.c	(revision 3)
+++ trunk/Ohana/src/imregister/detrend/select.c	(revision 3606)
@@ -2,5 +2,5 @@
 # include "detrend.h"
 
-Match SelectEntry (Match *list, int Nlist, Criteria *crit) {
+Match SelectEntry (DetReg *image, int Nimage, Match *list, int Nlist, Criteria *crit) {
 
   /* force a single selection */
@@ -16,10 +16,7 @@
 
   int i, j, entry, order, matchnum;
-  int nmatch, Nmatch, Nimage;
+  int nmatch, Nmatch;
   unsigned int tstart;
   Match *match, *tmatch, answer;
-  DetReg *image;
-
-  image = get_images (&Nimage);
 
   Nmatch = Nlist;
