Skip to content

Commit

Permalink
(dirsize_status_update_cb): use local variables instead of type casting.
Browse files Browse the repository at this point in the history
  • Loading branch information
aborodin committed Feb 26, 2015
1 parent 6a6e4f8 commit 448935f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/filemanager/file.c
Original file line number Diff line number Diff line change
Expand Up @@ -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))
{
Expand Down

0 comments on commit 448935f

Please sign in to comment.