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:
Roland Illig 2005-09-05 01:36:58 +00:00
parent 1c1f2f5210
commit 14e619d39e
3 changed files with 13 additions and 11 deletions

View File

@ -4,6 +4,7 @@
warnings. st_ctime is not the creation time, but the status warnings. st_ctime is not the creation time, but the status
change time. change time.
* achown.c: Likewise. * achown.c: Likewise.
* layout.c: Likewise.
2005-09-04 Roland Illig <roland.illig@gmx.de> 2005-09-04 Roland Illig <roland.illig@gmx.de>

View File

@ -210,7 +210,7 @@ static void update_mode (Dlg_head * h)
print_flags (); print_flags ();
attrset (COLOR_NORMAL); attrset (COLOR_NORMAL);
dlg_move (h, BY + 2, 9); dlg_move (h, BY + 2, 9);
printw ("%12o", get_mode ()); tty_printf ("%12o", get_mode ());
send_message (h->current, WIDGET_FOCUS, 0); send_message (h->current, WIDGET_FOCUS, 0);
} }
@ -357,8 +357,9 @@ static void chown_refresh (void)
if (!single_set){ if (!single_set){
dlg_move (ch_dlg, 3, 54); dlg_move (ch_dlg, 3, 54);
printw (const_cast(char *, _("%6d of %d")), files_on_begin - (current_panel->marked) + 1, tty_printf (_("%6d of %d"),
files_on_begin); files_on_begin - (current_panel->marked) + 1,
files_on_begin);
} }
print_flags (); print_flags ();
@ -371,9 +372,9 @@ static void chown_info_update (void)
/* name && mode */ /* name && mode */
dlg_move (ch_dlg, 3, 8); 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); dlg_move (ch_dlg, BY + 2, 9);
printw ("%12o", get_mode ()); tty_printf ("%12o", get_mode ());
/* permissions */ /* permissions */
update_permissions (); update_permissions ();

View File

@ -214,12 +214,12 @@ static void update_split (void)
attrset (COLOR_NORMAL); attrset (COLOR_NORMAL);
dlg_move (layout_dlg, 6, 6); dlg_move (layout_dlg, 6, 6);
printw ("%03d", _first_panel_size); tty_printf ("%03d", _first_panel_size);
dlg_move (layout_dlg, 6, 18); dlg_move (layout_dlg, 6, 18);
if (_horizontal_split) if (_horizontal_split)
printw ("%03d", height - _first_panel_size); tty_printf ("%03d", height - _first_panel_size);
else else
printw ("%03d", COLS - _first_panel_size); tty_printf ("%03d", COLS - _first_panel_size);
} }
static int b2left_cback (int action) 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); dlg_move (h, 9, 16 + first_width);
addstr (output_lines_label); addstr (output_lines_label);
dlg_move (h, 9, 10 + first_width); dlg_move (h, 9, 10 + first_width);
printw ("%02d", _output_lines); tty_printf ("%02d", _output_lines);
} }
} }
return MSG_HANDLED; return MSG_HANDLED;
@ -336,7 +336,7 @@ layout_callback (struct Dlg_head *h, dlg_msg_t msg, int parm)
old_output_lines = _output_lines; old_output_lines = _output_lines;
attrset (COLOR_NORMAL); attrset (COLOR_NORMAL);
dlg_move (h, 9, 10 + first_width); dlg_move (h, 9, 10 + first_width);
printw ("%02d", _output_lines); tty_printf ("%02d", _output_lines);
} }
} }
return MSG_HANDLED; return MSG_HANDLED;
@ -840,7 +840,7 @@ void print_vfs_message (const char *msg, ...)
move (0, 0); move (0, 0);
attrset (NORMAL_COLOR); attrset (NORMAL_COLOR);
printw ("%-*s", COLS-1, str); tty_printf ("%-*s", COLS-1, str);
/* Restore cursor position */ /* Restore cursor position */
move(row, col); move(row, col);