diff options
author | Michael McConville <mmcconville ~a~ mykolab ~d~ com> | 2015-09-16 23:42:36 -0400 |
---|---|---|
committer | Michael McConville <mmcconville ~a~ mykolab ~d~ com> | 2015-09-16 23:42:36 -0400 |
commit | 445222e48c380bbb5d209a82f9614187bc751b41 (patch) | |
tree | 6d236f6744ed7a61a754385519395a2932d66d3b /TraceScreen.c | |
parent | 1d805b36b429f5157dd0de6f0b498941aa097941 (diff) |
Clean up some needless malloc casts, convert some mallocs to callocs, and fix some style
Diffstat (limited to 'TraceScreen.c')
-rw-r--r-- | TraceScreen.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/TraceScreen.c b/TraceScreen.c index 48107438..ecd0c0ab 100644 --- a/TraceScreen.c +++ b/TraceScreen.c @@ -44,7 +44,7 @@ static const char* TraceScreenKeys[] = {"F3", "F4", "F8", "F9", "Esc"}; static int TraceScreenEvents[] = {KEY_F(3), KEY_F(4), KEY_F(8), KEY_F(9), 27}; TraceScreen* TraceScreen_new(Process* process) { - TraceScreen* this = (TraceScreen*) malloc(sizeof(TraceScreen)); + TraceScreen* this = malloc(sizeof(TraceScreen)); this->process = process; FunctionBar* fuBar = FunctionBar_new(TraceScreenFunctions, TraceScreenKeys, TraceScreenEvents); this->display = Panel_new(0, 1, COLS, LINES-2, false, Class(ListItem), fuBar); |