mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-08 20:41:59 +03:00
Switched from printw() to tty_printf() to avoid gcc
warnings. st_ctime is not the creation time, but the status change time.
This commit is contained in:
parent
1c1f2f5210
commit
14e619d39e
@ -4,6 +4,7 @@
|
||||
warnings. st_ctime is not the creation time, but the status
|
||||
change time.
|
||||
* achown.c: Likewise.
|
||||
* layout.c: Likewise.
|
||||
|
||||
2005-09-04 Roland Illig <roland.illig@gmx.de>
|
||||
|
||||
|
11
src/achown.c
11
src/achown.c
@ -210,7 +210,7 @@ static void update_mode (Dlg_head * h)
|
||||
print_flags ();
|
||||
attrset (COLOR_NORMAL);
|
||||
dlg_move (h, BY + 2, 9);
|
||||
printw ("%12o", get_mode ());
|
||||
tty_printf ("%12o", get_mode ());
|
||||
send_message (h->current, WIDGET_FOCUS, 0);
|
||||
}
|
||||
|
||||
@ -357,8 +357,9 @@ static void chown_refresh (void)
|
||||
|
||||
if (!single_set){
|
||||
dlg_move (ch_dlg, 3, 54);
|
||||
printw (const_cast(char *, _("%6d of %d")), files_on_begin - (current_panel->marked) + 1,
|
||||
files_on_begin);
|
||||
tty_printf (_("%6d of %d"),
|
||||
files_on_begin - (current_panel->marked) + 1,
|
||||
files_on_begin);
|
||||
}
|
||||
|
||||
print_flags ();
|
||||
@ -371,9 +372,9 @@ static void chown_info_update (void)
|
||||
|
||||
/* name && mode */
|
||||
dlg_move (ch_dlg, 3, 8);
|
||||
printw ("%s", name_trunc (fname, 45));
|
||||
tty_printf ("%s", name_trunc (fname, 45));
|
||||
dlg_move (ch_dlg, BY + 2, 9);
|
||||
printw ("%12o", get_mode ());
|
||||
tty_printf ("%12o", get_mode ());
|
||||
|
||||
/* permissions */
|
||||
update_permissions ();
|
||||
|
12
src/layout.c
12
src/layout.c
@ -214,12 +214,12 @@ static void update_split (void)
|
||||
|
||||
attrset (COLOR_NORMAL);
|
||||
dlg_move (layout_dlg, 6, 6);
|
||||
printw ("%03d", _first_panel_size);
|
||||
tty_printf ("%03d", _first_panel_size);
|
||||
dlg_move (layout_dlg, 6, 18);
|
||||
if (_horizontal_split)
|
||||
printw ("%03d", height - _first_panel_size);
|
||||
tty_printf ("%03d", height - _first_panel_size);
|
||||
else
|
||||
printw ("%03d", COLS - _first_panel_size);
|
||||
tty_printf ("%03d", COLS - _first_panel_size);
|
||||
}
|
||||
|
||||
static int b2left_cback (int action)
|
||||
@ -294,7 +294,7 @@ layout_callback (struct Dlg_head *h, dlg_msg_t msg, int parm)
|
||||
dlg_move (h, 9, 16 + first_width);
|
||||
addstr (output_lines_label);
|
||||
dlg_move (h, 9, 10 + first_width);
|
||||
printw ("%02d", _output_lines);
|
||||
tty_printf ("%02d", _output_lines);
|
||||
}
|
||||
}
|
||||
return MSG_HANDLED;
|
||||
@ -336,7 +336,7 @@ layout_callback (struct Dlg_head *h, dlg_msg_t msg, int parm)
|
||||
old_output_lines = _output_lines;
|
||||
attrset (COLOR_NORMAL);
|
||||
dlg_move (h, 9, 10 + first_width);
|
||||
printw ("%02d", _output_lines);
|
||||
tty_printf ("%02d", _output_lines);
|
||||
}
|
||||
}
|
||||
return MSG_HANDLED;
|
||||
@ -840,7 +840,7 @@ void print_vfs_message (const char *msg, ...)
|
||||
|
||||
move (0, 0);
|
||||
attrset (NORMAL_COLOR);
|
||||
printw ("%-*s", COLS-1, str);
|
||||
tty_printf ("%-*s", COLS-1, str);
|
||||
|
||||
/* Restore cursor position */
|
||||
move(row, col);
|
||||
|
Loading…
Reference in New Issue
Block a user