index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
-rw-r--r-- | lib/libalpm/util.h | 11 |
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) |