diff options
author | Christophe Grenier <[email protected]> | 2009-05-05 13:13:14 +0200 |
---|---|---|
committer | Christophe Grenier <[email protected]> | 2009-05-05 13:13:14 +0200 |
commit | 9d0ddd4ce3471d1f8c15845684df8c19b4876c7c (patch) | |
tree | f64678a1ce0a61b7847b980377d3b441704e89e6 /src/edit.c | |
parent | 8a36ff31fdfeee2ddbb3004f9157de7c3dbb42e4 (diff) |
Limit the scope of several variables
Diffstat (limited to 'src/edit.c')
-rw-r--r-- | src/edit.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -197,9 +197,7 @@ static void interface_editor_position(const disk_t *disk_car,uint64_t *lba) static int dump_editor(const unsigned char *nom_dump,const unsigned int lng, const int menu_pos) { - unsigned int i,j; unsigned int pos; - unsigned char car; int done=0; unsigned int menu; struct MenuItem menuDump[]= @@ -217,6 +215,8 @@ static int dump_editor(const unsigned char *nom_dump,const unsigned int lng, con mvwaddstr(stdscr, EDIT_Y, EDIT_X, msg_DUMP_HEXA); do { + unsigned int i,j; + unsigned char car; for (i=pos; (i<lng/0x10)&&((i-pos)<EDIT_MAX_LINES); i++) { wmove(stdscr,EDIT_Y+i-pos,EDIT_X); |