summaryrefslogtreecommitdiffstats
path: root/src/ewf.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/ewf.c
parentc9cd19d63db1dd2011370ee0bfc90ecc518f8ae2 (diff)
New prototype for size_to_unit()
Diffstat (limited to 'src/ewf.c')
-rw-r--r--src/ewf.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ewf.c b/src/ewf.c
index 6174b0a..2424f9f 100644
--- a/src/ewf.c
+++ b/src/ewf.c
@@ -176,8 +176,9 @@ static const char *fewf_description(disk_t *disk)
{
const struct info_fewf_struct *data=(const struct info_fewf_struct *)disk->data;
char buffer_disk_size[100];
+ size_to_unit(disk->disk_size, buffer_disk_size);
snprintf(disk->description_txt, sizeof(disk->description_txt),"Image %s - %s - CHS %lu %u %u%s",
- data->file_name, size_to_unit(disk->disk_size,buffer_disk_size),
+ data->file_name, buffer_disk_size,
disk->geom.cylinders, disk->geom.heads_per_cylinder, disk->geom.sectors_per_head,
((data->mode&O_RDWR)==O_RDWR?"":" (RO)"));
return disk->description_txt;
@@ -187,8 +188,9 @@ static const char *fewf_description_short(disk_t *disk)
{
const struct info_fewf_struct *data=(const struct info_fewf_struct *)disk->data;
char buffer_disk_size[100];
+ size_to_unit(disk->disk_size, buffer_disk_size);
snprintf(disk->description_short_txt, sizeof(disk->description_txt),"Image %s - %s%s",
- data->file_name, size_to_unit(disk->disk_size,buffer_disk_size),
+ data->file_name, buffer_disk_size,
((data->mode&O_RDWR)==O_RDWR?"":" (RO)"));
return disk->description_short_txt;
}