Index: trunk/MagicSoft/Simulation/Detector/ReflectorII/atm.c
===================================================================
--- trunk/MagicSoft/Simulation/Detector/ReflectorII/atm.c	(revision 870)
+++ trunk/MagicSoft/Simulation/Detector/ReflectorII/atm.c	(revision 923)
@@ -28,4 +28,7 @@
 
     Log(ATM__SET___LOG, AtmModelNames[atmModel]);
+
+    /*  'erfc' must be inited, so keep the following line.  */
+    Debug("Initing 'erfc': ret=%g\n", erfc(M_PI));
 }   /*  end of SetAtmModel  */
 	    
@@ -51,7 +54,7 @@
 
 int absorption(float wlen, float height, float theta)
-{   int   ret = 0;	/*  0: passed, 1: absorbed  */
- 
-    if ( RandomNumber > atm(wlen, height, theta)) return 1;
+{   int ret = 0;	/*  0: passed, 1: absorbed  */
+   
+    if (RandomNumber > atm(wlen, height, theta)) ret=1;
 
     return ret; 
Index: trunk/MagicSoft/Simulation/Detector/ReflectorII/geometry.c
===================================================================
--- trunk/MagicSoft/Simulation/Detector/ReflectorII/geometry.c	(revision 870)
+++ trunk/MagicSoft/Simulation/Detector/ReflectorII/geometry.c	(revision 923)
@@ -1,4 +1,5 @@
 #include <stdio.h>
 #include <string.h>
+#include <stdlib.h>
 #include <math.h>
 #include "diag.h"
@@ -69,5 +70,4 @@
 	    fclose(ct_BinaryData);	}
     }   /*  end of if: reading ASCII data  */
-
 }   /*  end of ReadMirrorTable  */
 
Index: trunk/MagicSoft/Simulation/Detector/ReflectorII/parms.c
===================================================================
--- trunk/MagicSoft/Simulation/Detector/ReflectorII/parms.c	(revision 870)
+++ trunk/MagicSoft/Simulation/Detector/ReflectorII/parms.c	(revision 923)
@@ -1,4 +1,5 @@
 #include <stdio.h>
 #include <string.h>
+#include <stdlib.h>
 #include <math.h>
 #include "diag.h"
