From 970e7da89632bdd6e8b75693cc9ad92f1b44000e Mon Sep 17 00:00:00 2001 From: carl Date: Sat, 11 May 2019 01:15:18 +0800 Subject: [PATCH] Adapt to new object API --- util/led/archive.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/util/led/archive.c b/util/led/archive.c index 6e21e01cf..b9d53d66b 100644 --- a/util/led/archive.c +++ b/util/led/archive.c @@ -45,10 +45,10 @@ static long getsymdeftable(void) register struct ranlib *ran; register long count; register long nran, nchar; - extern long rd_long(); + extern long rd_int4(); extern FILE* infile; - count = nran = rd_long(infile); + count = nran = rd_int4(infile); debug("%ld ranlib structs, ", nran, 0, 0, 0); if (nran > SIZE_MAX / sizeof(struct ranlib)) off = BADOFF; /* nran * size would overflow. */ @@ -58,7 +58,7 @@ static long getsymdeftable(void) fatal("no space for ranlib structs"); ran = (struct ranlib *)address(ALLORANL, off); rd_ranlib(infile, ran, count); - nchar = rd_long(infile); + nchar = rd_int4(infile); debug("%ld ranlib chars\n", nchar, 0, 0, 0); if (nchar != (size_t)nchar || (off = hard_alloc(ALLORANL, nchar)) == BADOFF)