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

Diff for /src/usr.bin/find/misc.c between version 1.11 and 1.12

version 1.11, 2009/10/27 23:59:38 version 1.12, 2014/05/18 08:10:00
Line 115 
Line 115 
  *      malloc with error checking.   *      malloc with error checking.
  */   */
 void *  void *
 emalloc(u_int len)  emalloc(size_t len)
 {  {
         void *p;          void *p;
   
         if ((p = malloc(len)))          if ((p = malloc(len)))
                   return (p);
           err(1, NULL);
   }
   
   void *
   ereallocarray(void *oldp, size_t sz1, size_t sz2)
   {
           void *p;
   
           if ((p = reallocarray(oldp, sz1, sz2)) != NULL)
                 return (p);                  return (p);
         err(1, NULL);          err(1, NULL);
 }  }

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