Index: trunk/Ohana/src/dvomerge/src/merge_catalogs_old.c
===================================================================
--- trunk/Ohana/src/dvomerge/src/merge_catalogs_old.c	(revision 27723)
+++ trunk/Ohana/src/dvomerge/src/merge_catalogs_old.c	(revision 27724)
@@ -10,5 +10,5 @@
 int merge_catalogs_old (SkyRegion *region, Catalog *output, Catalog *input, double RADIUS) {
 
-  off_t i, j, n, N, Nin, offset, J, Jmin, status, Nstars;
+  off_t i, j, Nin, offset, J, Jmin, status, Nstars;
   double RADIUS2, Rmin, Rin, Din;
   double *X1, *Y1, *X2, *Y2;
@@ -152,6 +152,6 @@
     /*** a match is found, add to average, measure ***/
     Nmatch ++;
-    n = N2[Jmin];
-    N = N1[i];
+    off_t n = N2[Jmin];
+    off_t N = N1[i];
 
     /* make sure there is space for next Nmeasure entries */
@@ -223,4 +223,6 @@
   /* these new entries are all written out in UPDATE mode */ 
   for (i = 0; i < Nstars; i++) {
+    off_t N = N1[i];
+
     /* make sure there is space for next entry */
     if (Nmeas + input[0].average[N].Nmeasure >= NMEAS) {
@@ -235,5 +237,4 @@
     }
 
-    N = N1[i];
     if (input[0].found[N] >= 0) continue;
     if (!IN_REGION (input[0].average[N].R, input[0].average[N].D)) continue;
