Index: /trunk/ppMerge/src/ppMerge.h
===================================================================
--- /trunk/ppMerge/src/ppMerge.h	(revision 18165)
+++ /trunk/ppMerge/src/ppMerge.h	(revision 18166)
@@ -45,5 +45,5 @@
 
 // Read nominated input file
-bool ppMergeFileReadInput(const pmConfig *config, // Configuration
+bool ppMergeFileReadInput(pmConfig *config, // Configuration
                           pmReadout *readout, // Readout into which to read
                           int num,      // Number of file in sequence
Index: /trunk/ppMerge/src/ppMergeFiles.c
===================================================================
--- /trunk/ppMerge/src/ppMergeFiles.c	(revision 18165)
+++ /trunk/ppMerge/src/ppMergeFiles.c	(revision 18166)
@@ -31,8 +31,8 @@
 }
 
-bool ppMergeFileReadInput(const pmConfig *config, pmReadout *readout, int num, int rows)
+bool ppMergeFileReadInput(pmConfig *config, pmReadout *readout, int num, int rows)
 {
     pmFPAfile *file = pmFPAfileSelectSingle(config->files, "PPMERGE.INPUT", num);
-    if (!pmReadoutReadChunk(readout, file->fits, 0, rows, 0, config->database)) {
+    if (!pmReadoutReadChunk(readout, file->fits, 0, rows, 0, config)) {
         psError(PS_ERR_UNKNOWN, false, "Unable to read readout.");
         return false;
@@ -41,5 +41,5 @@
     if (psMetadataLookupBool(&mdok, config->arguments, "INPUTS.MASKS")) {
         pmFPAfile *file = pmFPAfileSelectSingle(config->files, "PPMERGE.INPUT.MASK", num);
-        if (!pmReadoutReadChunkMask(readout, file->fits, 0, rows, 0, config->database)) {
+        if (!pmReadoutReadChunkMask(readout, file->fits, 0, rows, 0, config)) {
             psError(PS_ERR_UNKNOWN, false, "Unable to read readout mask.");
             return false;
@@ -48,5 +48,5 @@
     if (psMetadataLookupBool(&mdok, config->arguments, "INPUTS.WEIGHTS")) {
         pmFPAfile *file = pmFPAfileSelectSingle(config->files, "PPMERGE.INPUT.WEIGHT", num);
-        if (!pmReadoutReadChunkWeight(readout, file->fits, 0, rows, 0, config->database)) {
+        if (!pmReadoutReadChunkWeight(readout, file->fits, 0, rows, 0, config)) {
             psError(PS_ERR_UNKNOWN, false, "Unable to read readout weight.");
             return false;
Index: /trunk/ppMerge/src/ppMergeLoop.c
===================================================================
--- /trunk/ppMerge/src/ppMergeLoop.c	(revision 18165)
+++ /trunk/ppMerge/src/ppMergeLoop.c	(revision 18166)
@@ -165,5 +165,5 @@
                     #define READ_CHUNK(NAME,TYPE) { \
                         pmFPAfile *file = pmFPAfileSelectSingle(config->files, NAME, i); \
-                        if (!pmReadoutReadChunk##TYPE(inRO, file->fits, 0, rows, 0, config->database)) { \
+                        if (!pmReadoutReadChunk##TYPE(inRO, file->fits, 0, rows, 0, config)) { \
                             psError(PS_ERR_IO, false, "Unable to read chunk %d for file %s %d", \
                                     numChunk, NAME, i); \
@@ -219,5 +219,5 @@
                     #define MORE_CHUNK(NAME,TYPE) { \
                         pmFPAfile *file = pmFPAfileSelectSingle(config->files, NAME, i); \
-                        more &= pmReadoutMore##TYPE(inRO, file->fits, 0, rows, config->database); \
+                        more &= pmReadoutMore##TYPE(inRO, file->fits, 0, rows, config); \
                     }
 
