summaryrefslogtreecommitdiffstats
path: root/src/godmode.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2010-10-24 20:30:19 +0200
committerChristophe Grenier <grenier@cgsecurity.org>2010-10-24 20:30:19 +0200
commit7fbc038d1e62f4211aef0b0cc68d4be98f7df3a3 (patch)
treed4c9e19cbb1f828e8333ec6111660c0af91c5ecb /src/godmode.c
parentc9cd19d63db1dd2011370ee0bfc90ecc518f8ae2 (diff)
New prototype for size_to_unit()
Diffstat (limited to 'src/godmode.c')
-rw-r--r--src/godmode.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/godmode.c b/src/godmode.c
index 28ae96c..6da0446 100644
--- a/src/godmode.c
+++ b/src/godmode.c
@@ -138,8 +138,10 @@ static int interface_part_bad_ncurses(disk_t *disk_car, list_part_t *list_part)
{
char buffer_disk_size[100];
char buffer_disk_size_found[100];
+ size_to_unit(disk_car->disk_size, buffer_disk_size);
+ size_to_unit(disk_size, buffer_disk_size_found);
wprintw(stdscr,"The harddisk (%s) seems too small! (< %s)",
- size_to_unit(disk_car->disk_size,buffer_disk_size), size_to_unit(disk_size,buffer_disk_size_found));
+ buffer_disk_size, buffer_disk_size_found);
}
wmove(stdscr,7,0);
wprintw(stdscr,"Check the harddisk size: HD jumpers settings, BIOS detection...");
@@ -185,7 +187,8 @@ static int interface_part_bad_ncurses(disk_t *disk_car, list_part_t *list_part)
{
wprintw(stdscr,"%s, ",parts->part->info);
}
- wprintw(stdscr,"%s",size_to_unit(parts->part->part_size,buffer_part_size));
+ size_to_unit(parts->part->part_size, buffer_part_size);
+ wprintw(stdscr,"%s", buffer_part_size);
} else
{
waddstr(stdscr, " ");
@@ -270,8 +273,10 @@ static int interface_part_bad_log(disk_t *disk_car, list_part_t *list_part)
{
char buffer_disk_size[100];
char buffer_disk_size_found[100];
+ size_to_unit(disk_car->disk_size, buffer_disk_size);
+ size_to_unit(disk_size, buffer_disk_size_found);
log_warning("The harddisk (%s) seems too small! (< %s)\n",
- size_to_unit(disk_car->disk_size,buffer_disk_size), size_to_unit(disk_size,buffer_disk_size_found));
+ buffer_disk_size, buffer_disk_size_found);
}
if(list_part->next==NULL)
{