Index: branches/eam_branches/relphot.20210521/src/setMrelFinal.c
===================================================================
--- branches/eam_branches/relphot.20210521/src/setMrelFinal.c	(revision 41602)
+++ branches/eam_branches/relphot.20210521/src/setMrelFinal.c	(revision 41606)
@@ -5,5 +5,5 @@
 // output dbFlags values
 
-void setMrelFinal (Catalog *catalog, FlatCorrectionTable *flatcorr, int simpleAverage) {
+void setMrelFinal (Catalog *catalog, int simpleAverage) {
 
   off_t i;
@@ -103,10 +103,10 @@
   // XXX make this optional? (do not clean for -averages?)
   // XXX : for the moment, disable clean_measures
-  if (!simpleAverage && FALSE) clean_measures (catalog, 1, TRUE, flatcorr);    /* mark outliers ID_MEAS_POOR_PHOTOM */
+  if (!simpleAverage && FALSE) clean_measures (catalog, 1, TRUE);    /* mark outliers ID_MEAS_POOR_PHOTOM */
 
   ALLOCATE (catalog[0].measureRank, char, catalog[0].Nmeasure);
   setMeasureRank (catalog);
-  setMrelOutput (catalog, 1, flatcorr); // sets the values secfilt.MpsfChp = <measure.M + measure.Mflat - image.Mcal>
-  setMcalOutput (catalog, 1, flatcorr); // sets measure.Mcal = image.Mcal
+  setMrelOutput (catalog, 1); // sets the values secfilt.MpsfChp = <measure.M + measure.Mflat - image.Mcal>
+  setMcalOutput (catalog, 1); // sets measure.Mcal = image.Mcal
 
   /* clear ID_OBJ_POOR, ID_OBJ_FEW values before writing ??? */
@@ -163,5 +163,5 @@
 int print_measure_set (Average *average, SecFilt *secfilt, Measure *measure);
 
-void skip_measurements (Catalog *catalog, int pass, FlatCorrectionTable *flatcorr) {
+void skip_measurements (Catalog *catalog, int pass) {
 
   off_t i, k, m;
