summaryrefslogtreecommitdiffstats
path: root/src/intrfn.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2009-05-05 13:05:49 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2009-05-05 13:05:49 +0200
commit8a36ff31fdfeee2ddbb3004f9157de7c3dbb42e4 (patch)
treea44bbacaa305814b550918f3eb8a39beaae65dc1 /src/intrfn.c
parent7dde9f483c155f9c69180ce20abef78fdae87d7d (diff)
move autoset_unit() to a separate file
Diffstat (limited to 'src/intrfn.c')
-rw-r--r--src/intrfn.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/intrfn.c b/src/intrfn.c
index d42ad84..6250339 100644
--- a/src/intrfn.c
+++ b/src/intrfn.c
@@ -63,6 +63,7 @@
#include "dir.h"
#include "log.h"
#include "hdaccess.h"
+#include "autoset.h"
extern const arch_fnct_t arch_i386;
extern const arch_fnct_t arch_gpt;
@@ -491,9 +492,7 @@ void dump_ncurses(const void *nom_dump, unsigned int lng)
void dump(WINDOW *window, const void *nom_dump,unsigned int lng)
{
- unsigned int i,j;
unsigned int nbr_line;
- unsigned char car;
unsigned int pos=0;
int done=0;
unsigned int menu=2; /* default : quit */
@@ -515,6 +514,8 @@ void dump(WINDOW *window, const void *nom_dump,unsigned int lng)
/* On pourrait utiliser wscrl */
do
{
+ unsigned char car;
+ unsigned int i,j;
for (i=pos; (i<nbr_line)&&((i-pos)<DUMP_MAX_LINES); i++)
{
wmove(window,DUMP_Y+i-pos,DUMP_X);
@@ -600,7 +601,6 @@ void dump(WINDOW *window, const void *nom_dump,unsigned int lng)
void dump2(WINDOW *window, const void *dump_1, const void *dump_2, const unsigned int lng)
{
- unsigned int i,j;
unsigned int nbr_line;
unsigned int pos=0;
int done=0;
@@ -621,6 +621,7 @@ void dump2(WINDOW *window, const void *dump_1, const void *dump_2, const unsigne
}
do
{
+ unsigned int i,j;
for (i=pos; (i<nbr_line)&&((i-pos)<DUMP_MAX_LINES); i++)
{
wmove(window,DUMP_Y+i-pos,DUMP_X);
@@ -764,7 +765,6 @@ int screen_buffer_display(WINDOW *window, const char *options_org, const struct
#define INTER_MAX_LINES (INTER_ANALYSE_MENU_Y-INTER_ANALYSE_Y-2)
int screen_buffer_display_ext(WINDOW *window, const char *options_org, const struct MenuItem *menuItems, unsigned int *menu)
{
- int i;
int first_line_to_display=0;
int current_line=0;
int done=0;
@@ -785,6 +785,7 @@ int screen_buffer_display_ext(WINDOW *window, const char *options_org, const str
/* curses interface */
do
{
+ int i;
int key;
wmove(window, INTER_ANALYSE_Y-1, INTER_ANALYSE_X+4);
wclrtoeol(window);