radare2/libr/anal/cycles.c
pancake 160fc95e66
Use (void) instead of () in function signatures (#17026) ##refactoring
* Use (void) instead of () in function signatures
* Add test to avoid further contributions to commit the same mistake
2020-06-14 16:08:32 +02:00

24 lines
428 B
C

/* radare - LGPL - Copyright 2014-2020 - condret */
#include <r_anal.h>
#include <r_list.h>
#include <r_types.h>
R_API RAnalCycleFrame *r_anal_cycle_frame_new(void) {
RAnalCycleFrame *cf = R_NEW0 (RAnalCycleFrame);
if (cf) {
if (!(cf->hooks = r_list_new ())) {
R_FREE (cf);
}
}
return cf;
}
R_API void r_anal_cycle_frame_free(RAnalCycleFrame *cf) {
if (!cf) {
return;
}
r_list_free (cf->hooks);
free (cf);
}