[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.3 and 1.4

version 1.3, 2004/04/07 13:11:36 version 1.4, 2007/09/16 10:43:53
Line 42 
Line 42 
 #include <stdlib.h>  #include <stdlib.h>
 #include <string.h>  #include <string.h>
 #include <unistd.h>  #include <unistd.h>
   #include <stddef.h>
   #include <stdint.h>
   #include <ohash.h>
 #include "defines.h"  #include "defines.h"
 #include "memory.h"  #include "memory.h"
   
Line 164 
Line 167 
                 return -1;                  return -1;
         }          }
         return unlink(file);          return unlink(file);
   }
   
   void
   free_hash(struct ohash *h)
   {
           void *e;
           unsigned int i;
   
           for (e = ohash_first(h, &i); e != NULL; e = ohash_next(h, &i))
                   free(e);
           ohash_delete(h);
 }  }
   

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4