From b959f473dc6aa3556077ef60df178500e18afbb9 Mon Sep 17 00:00:00 2001 From: Cary R Date: Tue, 3 Feb 2009 09:19:31 -0800 Subject: [PATCH] Cast away const to avoid a warning when cleaning up const data. When cleaning up the vcd_list make sure to remove the const qualifier before freeing the ident. This is created with strdup. --- vpi/sys_vcd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vpi/sys_vcd.c b/vpi/sys_vcd.c index 8ab74cbf3..9b882b07a 100644 --- a/vpi/sys_vcd.c +++ b/vpi/sys_vcd.c @@ -261,7 +261,7 @@ static PLI_INT32 finish_cb(p_cb_data cause) for (cur = vcd_list ; cur ; cur = next) { next = cur->next; - free(cur->ident); + free((char *)cur->ident); free(cur); } vcd_names_delete(&vcd_tab);