From 85471efb4c740bb775c9ebdb10f775620c979598 Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Sun, 22 Sep 2024 16:02:42 -0400 Subject: mld done --- masm/sectab.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'masm/sectab.c') 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; } -- cgit v1.2.3-freya