summaryrefslogtreecommitdiff
path: root/masm/reftbl.c
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2024-09-09 20:48:08 -0400
committerFreya Murphy <freya@freyacat.org>2024-09-09 20:48:08 -0400
commit0ff948af3d65150f44c9fe801ada806ce0637fe1 (patch)
treeba766d33d12bf1063660c2144af2d5f5c36b4c87 /masm/reftbl.c
parenti forgor syscall (diff)
downloadmips-0ff948af3d65150f44c9fe801ada806ce0637fe1.tar.gz
mips-0ff948af3d65150f44c9fe801ada806ce0637fe1.tar.bz2
mips-0ff948af3d65150f44c9fe801ada806ce0637fe1.zip
relocation table hell
Diffstat (limited to 'masm/reftbl.c')
-rw-r--r--masm/reftbl.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/masm/reftbl.c b/masm/reftbl.c
index bdd1f07..198af83 100644
--- a/masm/reftbl.c
+++ b/masm/reftbl.c
@@ -12,13 +12,13 @@ int reftbl_init(struct reference_table *ref_tbl)
{
ref_tbl->len = RELTBL_INIT_LEN;
ref_tbl->count = 0;
- ref_tbl->references = malloc(sizeof(struct reference) *
+ ref_tbl->references = malloc(sizeof(struct reference) *
RELTBL_INIT_LEN);
- if (ref_tbl->references == NULL) {
- ERROR("cannot alloc");
- return M_ERROR;
- }
+ if (ref_tbl->references == NULL) {
+ ERROR("cannot alloc");
+ return M_ERROR;
+ }
return M_SUCCESS;
}