]> git.deb.at Git - pkg/abook.git/blobdiff - xmalloc.c
- code cleanups and minor fixes
[pkg/abook.git] / xmalloc.c
index bc22a97b19faa6867ee9f8535a5b0ea52d3e2a3b..d291f4dd76149b86679cb29e51691ca0fb72cbc6 100644 (file)
--- a/xmalloc.c
+++ b/xmalloc.c
@@ -36,6 +36,7 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
+#include "xmalloc.h"
 
 static void
 xmalloc_default_error_handler(int err)
@@ -134,10 +135,3 @@ xrealloc_inc(void *ptr, size_t size, size_t inc)
        return ptr;
 }
 
-void
-xfree(void *ptr)
-{
-       free(ptr);
-       ptr = NULL;
-}
-