From 448935fa5bb25509cb7012865d4a5f392f1bf495 Mon Sep 17 00:00:00 2001 From: Andrew Borodin Date: Fri, 30 Jan 2015 21:04:10 +0300 Subject: [PATCH] (dirsize_status_update_cb): use local variables instead of type casting. --- src/filemanager/file.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/filemanager/file.c b/src/filemanager/file.c index eca4ef4e2..1a7d7e7c5 100644 --- a/src/filemanager/file.c +++ b/src/filemanager/file.c @@ -2528,13 +2528,12 @@ dirsize_status_update_cb (status_msg_t * sm) if (WIDGET (dsm->count_size)->cols + 6 > wd->cols) { dlg_set_size (sm->dlg, wd->lines, WIDGET (dsm->count_size)->cols + 6); - dirsize_status_locate_buttons ((dirsize_status_msg_t *) sm); + dirsize_status_locate_buttons (dsm); dlg_redraw (sm->dlg); } /* adjust first label */ - label_set_text (dsm->dirname, - str_trunc (vfs_path_as_str (dsm->dirname_vpath), WIDGET (sm->dlg)->cols - 6)); + label_set_text (dsm->dirname, str_trunc (vfs_path_as_str (dsm->dirname_vpath), wd->cols - 6)); switch (status_msg_common_update (sm)) {