[BACK]Return to stats.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / make

Diff for /src/usr.bin/make/stats.c between version 1.1 and 1.2

version 1.1, 2001/05/03 13:41:10 version 1.2, 2001/05/23 12:34:49
Line 35 
Line 35 
    to allow for concurrent adjustment to variables.     to allow for concurrent adjustment to variables.
  */   */
   
 #include "make.h"  #include "config.h"
   #include "defines.h"
 #include "stats.h"  #include "stats.h"
   
 #ifdef HAS_STATS  #ifdef HAS_STATS
Line 50 
Line 51 
 static float average_runs(unsigned long val);  static float average_runs(unsigned long val);
 unsigned long *statarray;  unsigned long *statarray;
   
 static Boolean mmapped = FALSE;  static bool mmapped = false;
   
 static float  static float
 average_runs(val)  average_runs(val)
Line 154 
Line 155 
                 PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0);                  PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0);
             if (statarray == MAP_FAILED)              if (statarray == MAP_FAILED)
                 exit(1);                  exit(1);
             mmapped = TRUE;              mmapped = true;
         }          }
     } else      } else
     /* or we don't -> simple stats gathering */      /* or we don't -> simple stats gathering */

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2