From: Matthew Fernandez Date: Sat, 11 Jul 2020 19:18:47 +0000 (-0700) Subject: remove now unused parameters to vmopen() X-Git-Tag: 2.46.0~20^2^2~182^2~17 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1bf87f7ada75ce4984cc0e6d8b7df08399078bc2;p=graphviz remove now unused parameters to vmopen() --- diff --git a/lib/expr/exopen.c b/lib/expr/exopen.c index 47119b63b..69b4fa6d0 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(Vmdcheap, Vmbest, 0)) || - !(program->ve = vmopen(Vmdcheap, Vmbest, 0))) + !(program->vm = vmopen(Vmbest)) || + !(program->ve = vmopen(Vmbest))) { exclose(program, 1); return 0; diff --git a/lib/vmalloc/vmalloc.h b/lib/vmalloc/vmalloc.h index a133973fd..8ef85d717 100644 --- a/lib/vmalloc/vmalloc.h +++ b/lib/vmalloc/vmalloc.h @@ -107,7 +107,7 @@ extern "C" { extern Vmalloc_t *Vmheap; /* heap region */ extern Vmalloc_t *Vmregion; /* malloc region */ - extern Vmalloc_t *vmopen(Vmdisc_t *, Vmethod_t *, int); + extern Vmalloc_t *vmopen(Vmethod_t *); extern int vmclose(Vmalloc_t *); extern int vmclear(Vmalloc_t *); diff --git a/lib/vmalloc/vmopen.c b/lib/vmalloc/vmopen.c index 47fd1dcc4..e79c56895 100644 --- a/lib/vmalloc/vmopen.c +++ b/lib/vmalloc/vmopen.c @@ -18,16 +18,11 @@ */ /** - * @param disc ignored * @param meth method to manage space - * @param mode ignored type of region */ -Vmalloc_t *vmopen(Vmdisc_t *disc, Vmethod_t *meth, int mode) { +Vmalloc_t *vmopen(Vmethod_t *meth) { Vmalloc_t *vm; - (void)disc; - (void)mode; - vm = malloc(sizeof(*vm)); if (vm == NULL) { return NULL;