index : pacman | |
Archlinux32 fork of pacman | gitolite user |
summaryrefslogtreecommitdiff |
author | Aurelien Foret <aurelien@archlinux.org> | 2006-02-20 20:41:40 +0000 |
---|---|---|
committer | Aurelien Foret <aurelien@archlinux.org> | 2006-02-20 20:41:40 +0000 |
commit | 590f610d6b79d4bec993e03bebf7d0850b470f6d (patch) | |
tree | 8bfa451105a1995c04d19b1cba4a389bfd6fab52 /lib/libalpm/util.h | |
parent | a5f67ef81983fdddc50851a82ecd664efab115d1 (diff) |
-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) |