Index: trunk/FACT++/src/EventBuilderWrapper.h
===================================================================
--- trunk/FACT++/src/EventBuilderWrapper.h	(revision 11604)
+++ trunk/FACT++/src/EventBuilderWrapper.h	(revision 11605)
@@ -813,5 +813,5 @@
     {
         // FIXME: Add a check that we are not too close to noon!
-        const int night = Time().NightAsInt();
+        //const int night = Time().NightAsInt();
 
         fRunNumber = 1000;
@@ -906,4 +906,6 @@
         };
 
+        // FIMXE: Maybe reset an event counter so that the mcp can count events?
+
         fExpectedRuns[fRunNumber] = descr;
         return fRunNumber++;
@@ -1154,4 +1156,6 @@
     FileHandle_t runOpen(uint32_t runid, RUN_HEAD *h, size_t)
     {
+        fMsg.Info(" ==> TODO: Update run configuration in database!");
+
         // Check if file already exists...
         DataFileImp *file = 0;
@@ -1233,4 +1237,6 @@
     int runClose(FileHandle_t handler, RUN_TAIL *tail, size_t)
     {
+        fMsg.Info(" ==> TODO: Update run configuration in database!");
+
         DataFileImp *file = reinterpret_cast<DataFileImp*>(handler);
 
@@ -1417,5 +1423,5 @@
     }
 
-    void gotNewRun(int runnr, PEVNT_HEADER *headers)
+    void gotNewRun(int runnr, PEVNT_HEADER */*headers*/)
     {
         // This function is called even when writing is switched off
@@ -1600,5 +1606,5 @@
         }
 
-        vec[40] = val ? *min : 0xffffffff;
+        vec[40] = val ? *min : 1;
         vec[41] = val ? *max : 0;
 
@@ -1666,5 +1672,5 @@
     vector<uint> fNumConnected;
 
-    void debugHead(int socket, const FAD::EventHeader &h)
+    void debugHead(int /*socket*/, const FAD::EventHeader &h)
     {
         const uint16_t id = h.Id();
