summaryrefslogtreecommitdiff
path: root/masm/sectab.c
diff options
context:
space:
mode:
Diffstat (limited to 'masm/sectab.c')
-rw-r--r--masm/sectab.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/masm/sectab.c b/masm/sectab.c
index d07399f..caf34dd 100644
--- a/masm/sectab.c
+++ b/masm/sectab.c
@@ -16,7 +16,7 @@ int sectab_init(struct section_table *sectab)
sectab->sections = malloc(sizeof(struct section) * SECTBL_INIT_LEN);
if (sectab->sections == NULL) {
- ERROR("cannot alloc");
+ PERROR("cannot alloc");
return M_ERROR;
}
@@ -59,7 +59,7 @@ int sectab_alloc(struct section_table *sectab, struct section **res,
sizeof(struct section) * sectab->size);
if (sectab->sections == NULL) {
- ERROR("cannot realloc");
+ PERROR("cannot realloc");
return M_ERROR;
}
}
@@ -94,7 +94,7 @@ int sectab_alloc(struct section_table *sectab, struct section **res,
}
if (sec->entries == NULL) {
- ERROR("cannot alloc");
+ PERROR("cannot alloc");
return M_ERROR;
}
@@ -127,7 +127,7 @@ int sec_push(struct section *section, struct section_entry entry)
sizeof(struct section_entry) * section->size);
if (new == NULL) {
- ERROR("cannot realloc");
+ PERROR("cannot realloc");
return M_ERROR;
}