Index: /trunk/FACT++/src/Fits.cc
===================================================================
--- /trunk/FACT++/src/Fits.cc	(revision 11592)
+++ /trunk/FACT++/src/Fits.cc	(revision 11593)
@@ -20,6 +20,6 @@
 #include "MessageImp.h"
 
-//for file stats
-#include <sys/stat.h>
+
+#include <sys/stat.h> //for file stats
 
 using namespace std;
@@ -129,5 +129,5 @@
 //! @param runNumber the runNumber for which this file is opened. 0 means nightly file.
 //
-bool Fits::Open(const string& fileName, const string& tableName, FITS* file, int* fitsCounter, MessageImp* out, int runNumber)
+bool Fits::Open(const string& fileName, const string& tableName, FITS* file, uint32_t* fitsCounter, MessageImp* out, int runNumber)
 {		
 //	if (fMess)
Index: /trunk/FACT++/src/Fits.h
===================================================================
--- /trunk/FACT++/src/Fits.h	(revision 11592)
+++ /trunk/FACT++/src/Fits.h	(revision 11593)
@@ -54,5 +54,5 @@
 private:
 		///Keep track of number of opened fits
-		int* fNumOpenFitsFiles;
+		uint32_t* fNumOpenFitsFiles;
 		///were to log the errors
 		MessageImp* fMess;		
@@ -91,5 +91,5 @@
 
 		///Opens a FITS file
-        bool Open(const string& fileName, const string& tableName, CCfits::FITS* file, int* fitsCounter, MessageImp* out, int runNumber);//ostream& out);
+        bool Open(const string& fileName, const string& tableName, CCfits::FITS* file, uint32_t* fitsCounter, MessageImp* out, int runNumber);//ostream& out);
 
 		///Write one line of data. Use the given converter.
Index: /trunk/FACT++/src/datalogger.cc
===================================================================
--- /trunk/FACT++/src/datalogger.cc	(revision 11592)
+++ /trunk/FACT++/src/datalogger.cc	(revision 11593)
@@ -67,10 +67,10 @@
 ///distributes the number of opened subscriptions and fits files
 struct NumSubAndFitsType {
-    int numSubscriptions;
-    int numOpenFits;
+    uint32_t numSubscriptions;
+    uint32_t numOpenFits;
 };
 ///distributes which files were opened.
 struct OpenFileToDim {
-    int code;
+    uint32_t code;
     char fileName[FILENAME_MAX];
 };
@@ -1733,5 +1733,5 @@
     memcpy(fToDim.fileName, name.c_str(), name.size()+1);
 
-    service->setData(reinterpret_cast<void*>(&fToDim), name.size()+1+sizeof(int));
+    service->setData(reinterpret_cast<void*>(&fToDim), name.size()+1+sizeof(uint32_t));
     service->setQuality(0);
     service->updateService();
