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

Diff for /src/usr.bin/make/memory.c between version 1.10 and 1.11

version 1.10, 2014/05/12 19:11:19 version 1.11, 2014/05/18 08:08:50
Line 94 
Line 94 
 }  }
   
 void *  void *
 ecalloc(size_t s1, size_t s2)  
 {  
         void *p;  
   
         if ((p = calloc(s1, s2)) == NULL)  
                 enocmem(s1, s2);  
         return p;  
 }  
   
 void *  
 ereallocarray(void *ptr, size_t s1, size_t s2)  ereallocarray(void *ptr, size_t s1, size_t s2)
 {  {
         if ((ptr = reallocarray(ptr, s1, s2)) == NULL)          if ((ptr = reallocarray(ptr, s1, s2)) == NULL)
Line 115 
Line 105 
 void *  void *
 hash_calloc(size_t n, size_t s, void *u UNUSED)  hash_calloc(size_t n, size_t s, void *u UNUSED)
 {  {
         return ecalloc(n, s);          void *p;
   
           if ((p = calloc(n, s)) == NULL)
                   enocmem(n, s);
           return p;
 }  }
   
 void  void

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11