Fixed embedded atf code warning (RT 46833)

This commit is contained in:
Francis Dupont
2017-12-18 16:14:47 +01:00
parent 350e5eecad
commit f4819486bc
+3 -1
View File
@@ -285,7 +285,9 @@ list_tcs(const atf_tp_t *tp)
atf_utils_free_charpp(vars);
}
free(tcs);
#define UNCONST(a) ((void *)(unsigned long)(const void *)(a))
free(UNCONST(tcs));
#undef UNCONST
}
/* ---------------------------------------------------------------------