From 3205c5970652bba56e2e3904a565491503fb6206 Mon Sep 17 00:00:00 2001 From: Daniel-Constantin Mierla Date: Fri, 24 Nov 2017 14:44:12 +0100 Subject: [PATCH] core: mod_fix - typedefed struct to pvs_fixup_t --- src/core/mod_fix.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/core/mod_fix.c b/src/core/mod_fix.c index 3e8562add6b..b07adcfc262 100644 --- a/src/core/mod_fix.c +++ b/src/core/mod_fix.c @@ -259,14 +259,14 @@ FIXUP_F1T(pvar_null, 1, 1, FPARAM_PVS) FIXUP_F1T(pvar_pvar, 1, 2, FPARAM_PVS) */ -struct pvs_fixup { +typedef struct pvs_fixup { pv_spec_t pvs; /* parsed pv spec */ void* orig; /* original pointer */ -}; +} pvs_fixup_t; int fixup_pvar_all(void** param, int param_no) { - struct pvs_fixup* pvs_f; + pvs_fixup_t* pvs_f; str name; pvs_f = 0; @@ -296,14 +296,14 @@ int fixup_pvar_all(void** param, int param_no) int fixup_free_pvar_all(void** param, int param_no) { - struct pvs_fixup* pvs_f; + pvs_fixup_t* pvs_f; if (*param) { pvs_f = *param; *param = pvs_f->orig; /* free only the contents (don't attempt to free &pvs_f->pvs)*/ pv_spec_destroy(&pvs_f->pvs); - /* free the whole pvs_fixup */ + /* free the whole pvs_fixup_t */ pkg_free(pvs_f); } return 0;