summaryrefslogtreecommitdiffstats
path: root/lib/libalpm/util.h
diff options
context:
space:
mode:
authorAurelien Foret <aurelien@archlinux.org>2006-02-20 21:41:40 +0100
committerAurelien Foret <aurelien@archlinux.org>2006-02-20 21:41:40 +0100
commit590f610d6b79d4bec993e03bebf7d0850b470f6d (patch)
tree8bfa451105a1995c04d19b1cba4a389bfd6fab52 /lib/libalpm/util.h
parenta5f67ef81983fdddc50851a82ecd664efab115d1 (diff)
downloadpacman-590f610d6b79d4bec993e03bebf7d0850b470f6d.tar.gz
pacman-590f610d6b79d4bec993e03bebf7d0850b470f6d.tar.xz
dropped the MALLOC macro
Diffstat (limited to 'lib/libalpm/util.h')
-rw-r--r--lib/libalpm/util.h11
1 files changed, 0 insertions, 11 deletions
diff --git a/lib/libalpm/util.h b/lib/libalpm/util.h
index 225820e1..7b24961c 100644
--- a/lib/libalpm/util.h
+++ b/lib/libalpm/util.h
@@ -23,17 +23,6 @@
#include <stdio.h>
-#define MALLOC(p, b) { \
- if((b) > 0) { \
- p = malloc(b); \
- if (!(p)) { \
- fprintf(stderr, "malloc failure: could not allocate %d bytes\n", (b)); \
- exit(1); \
- } \
- } else { \
- p = NULL; \
- } \
-}
#define FREE(p) do { if (p) { free(p); p = NULL; } } while(0)
#define ASSERT(cond, action) do { if(!(cond)) { action; } } while(0)