[BACK]Return to test-ohash.c CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / mandoc

Diff for /mandoc/test-ohash.c between version 1.4 and 1.5

version 1.4, 2015/10/06 18:32:20 version 1.5, 2016/07/18 18:35:05
Line 3 
Line 3 
 #include <stdlib.h>  #include <stdlib.h>
 #include <ohash.h>  #include <ohash.h>
   
 void *xmalloc(size_t sz, void *arg) { return calloc(1,sz); }  static void     *xmalloc(size_t, void *);
 void *xcalloc(size_t nmemb, size_t sz, void *arg) { return calloc(nmemb,sz); }  static void     *xcalloc(size_t, size_t, void *);
 void xfree(void *p, void *arg) { free(p); }  static void      xfree(void *, void *);
   
   
   static void *
   xmalloc(size_t sz, void *arg) {
           return calloc(1,sz);
   }
   
   static void *
   xcalloc(size_t nmemb, size_t sz, void *arg)
   {
           return calloc(nmemb,sz);
   }
   
   static void
   xfree(void *p, void *arg)
   {
           free(p);
   }
   
 int  int
 main(void)  main(void)

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

CVSweb