From a79528d1e1dfb56e36643e49138304e06e465310 Mon Sep 17 00:00:00 2001 From: Matthew Fernandez Date: Sat, 11 Jul 2020 14:25:04 -0700 Subject: [PATCH] remove now unused parameter to vmopen --- lib/expr/exopen.c | 4 ++-- lib/vmalloc/vmalloc.h | 2 +- lib/vmalloc/vmopen.c | 7 +------ 3 files changed, 4 insertions(+), 9 deletions(-) diff --git a/lib/expr/exopen.c b/lib/expr/exopen.c index 69b4fa6d0..34d83f37f 100644 --- a/lib/expr/exopen.c +++ b/lib/expr/exopen.c @@ -42,8 +42,8 @@ exopen(register Exdisc_t* disc) program->symdisc.key = offsetof(Exid_t, name); if (!(program->symbols = dtopen(&program->symdisc, Dtset)) || !(program->tmp = sfstropen()) || - !(program->vm = vmopen(Vmbest)) || - !(program->ve = vmopen(Vmbest))) + !(program->vm = vmopen()) || + !(program->ve = vmopen())) { exclose(program, 1); return 0; diff --git a/lib/vmalloc/vmalloc.h b/lib/vmalloc/vmalloc.h index ed5fb08ce..937794797 100644 --- a/lib/vmalloc/vmalloc.h +++ b/lib/vmalloc/vmalloc.h @@ -104,7 +104,7 @@ extern "C" { extern Vmalloc_t *Vmheap; /* heap region */ extern Vmalloc_t *Vmregion; /* malloc region */ - extern Vmalloc_t *vmopen(Vmethod_t *); + extern Vmalloc_t *vmopen(void); extern int vmclose(Vmalloc_t *); extern int vmclear(Vmalloc_t *); diff --git a/lib/vmalloc/vmopen.c b/lib/vmalloc/vmopen.c index 400b6029a..b0fca7646 100644 --- a/lib/vmalloc/vmopen.c +++ b/lib/vmalloc/vmopen.c @@ -17,14 +17,9 @@ ** Written by Kiem-Phong Vo, kpv@research.att.com, 01/16/94. */ -/** - * @param meth ignored - */ -Vmalloc_t *vmopen(Vmethod_t *meth) { +Vmalloc_t *vmopen(void) { Vmalloc_t *vm; - (void)meth; - vm = malloc(sizeof(*vm)); if (vm == NULL) { return NULL; -- 2.40.0