summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlistair Popple <alistair@popple.id.au>2018-11-21 13:52:10 +1100
committerAlistair Popple <alistair@popple.id.au>2018-12-03 14:35:12 +1100
commitf47801434576ec8a05c6b518d1472491a8a506bd (patch)
treeeb743579f3ca264dd904efb8346d9cfaa5168562
parenta42e204094dceac64d3cb342a489f0de9af98be6 (diff)
downloadpdbg-f47801434576ec8a05c6b518d1472491a8a506bd.tar.gz
pdbg-f47801434576ec8a05c6b518d1472491a8a506bd.zip
libpdbg: Remove zalloc macro
Signed-off-by: Alistair Popple <alistair@popple.id.au> Reviewed-by: Amitay Isaacs <amitay@ozlabs.org>
-rw-r--r--libpdbg/device.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libpdbg/device.c b/libpdbg/device.c
index f81b1b5..3dc301f 100644
--- a/libpdbg/device.c
+++ b/libpdbg/device.c
@@ -28,7 +28,6 @@
#include "debug.h"
#include "compiler.h"
-#define zalloc(size) calloc(1, size)
#define prerror printf
#define is_rodata(p) false
@@ -219,7 +218,7 @@ static char *dt_get_path(const struct pdbg_target *node)
if (n->parent || n == node)
len++;
}
- path = zalloc(len + 1);
+ path = calloc(1, len + 1);
assert(path);
p = path + len;
for (n = node; n; n = n->parent) {
OpenPOWER on IntegriCloud