mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 12:32:40 +03:00
(mcview_display_hex): reduce variable scope.
Found by cppcheck 1.81. Signed-off-by: Andreas Mohr <and@gmx.li> Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
371d69e8ba
commit
cedf33301a
@ -152,12 +152,13 @@ mcview_display_hex (WView * view)
|
||||
for (; mcview_get_byte (view, from, NULL) && row < (int) height; row++)
|
||||
{
|
||||
screen_dimen col = 0;
|
||||
size_t i;
|
||||
int bytes; /* Number of bytes already printed on the line */
|
||||
|
||||
/* Print the hex offset */
|
||||
if (row >= 0)
|
||||
{
|
||||
size_t i;
|
||||
|
||||
g_snprintf (hex_buff, sizeof (hex_buff), "%08" PRIXMAX " ", (uintmax_t) from);
|
||||
widget_move (view, top + row, left);
|
||||
tty_setcolor (VIEW_BOLD_COLOR);
|
||||
|
Loading…
Reference in New Issue
Block a user