summaryrefslogtreecommitdiffstats
path: root/OpenFilesScreen.c
diff options
context:
space:
mode:
authorMichael McConville <mmcconville ~a~ mykolab ~d~ com>2015-09-16 23:42:36 -0400
committerMichael McConville <mmcconville ~a~ mykolab ~d~ com>2015-09-16 23:42:36 -0400
commit445222e48c380bbb5d209a82f9614187bc751b41 (patch)
tree6d236f6744ed7a61a754385519395a2932d66d3b /OpenFilesScreen.c
parent1d805b36b429f5157dd0de6f0b498941aa097941 (diff)
Clean up some needless malloc casts, convert some mallocs to callocs, and fix some style
Diffstat (limited to 'OpenFilesScreen.c')
-rw-r--r--OpenFilesScreen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/OpenFilesScreen.c b/OpenFilesScreen.c
index 86eb3f8e..2a5e20af 100644
--- a/OpenFilesScreen.c
+++ b/OpenFilesScreen.c
@@ -58,7 +58,7 @@ static const char* OpenFilesScreenKeys[] = {"F3", "F4", "F5", "Esc"};
static int OpenFilesScreenEvents[] = {KEY_F(3), KEY_F(4), KEY_F(5), 27};
OpenFilesScreen* OpenFilesScreen_new(Process* process) {
- OpenFilesScreen* this = (OpenFilesScreen*) malloc(sizeof(OpenFilesScreen));
+ OpenFilesScreen* this = malloc(sizeof(OpenFilesScreen));
this->process = process;
FunctionBar* bar = FunctionBar_new(OpenFilesScreenFunctions, OpenFilesScreenKeys, OpenFilesScreenEvents);
this->display = Panel_new(0, 1, COLS, LINES-3, false, Class(ListItem), bar);

© 2014-2024 Faster IT GmbH | imprint | privacy policy