diff --git a/libyasm/bc-data.c b/libyasm/bc-data.c index 92b16060..3f3e5533 100644 --- a/libyasm/bc-data.c +++ b/libyasm/bc-data.c @@ -84,7 +84,7 @@ static void bc_data_destroy(void *contents) { bytecode_data *bc_data = (bytecode_data *)contents; - yasm_dvs_destroy(&bc_data->datahead); + yasm_dvs_delete(&bc_data->datahead); yasm_xfree(contents); } @@ -381,7 +381,7 @@ yasm_dv_create_raw(unsigned char *contents, unsigned long len) } void -yasm_dvs_destroy(yasm_datavalhead *headp) +yasm_dvs_delete(yasm_datavalhead *headp) { yasm_dataval *cur, *next; diff --git a/libyasm/bytecode.h b/libyasm/bytecode.h index 1a4fb6de..1f1be6aa 100644 --- a/libyasm/bytecode.h +++ b/libyasm/bytecode.h @@ -438,7 +438,7 @@ void yasm_dvs_initialize(yasm_datavalhead *headp); /** Delete (free allocated memory for) a list of data values. * \param headp list of data values */ -void yasm_dvs_destroy(yasm_datavalhead *headp); +void yasm_dvs_delete(yasm_datavalhead *headp); /** Add data value to the end of a list of data values. * \note Does not make a copy of the data value; so don't pass this function