summaryrefslogtreecommitdiffstats
path: root/src/fnctdsk.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/fnctdsk.c
parentc9cd19d63db1dd2011370ee0bfc90ecc518f8ae2 (diff)
New prototype for size_to_unit()
Diffstat (limited to 'src/fnctdsk.c')
-rw-r--r--src/fnctdsk.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/fnctdsk.c b/src/fnctdsk.c
index 02e814e..a647c47 100644
--- a/src/fnctdsk.c
+++ b/src/fnctdsk.c
@@ -395,7 +395,7 @@ unsigned int get_geometry_from_list_part(const disk_t *disk_car, const list_part
return heads_per_cylinder;
}
-const char *size_to_unit(uint64_t disk_size, char *buffer)
+void size_to_unit(const uint64_t disk_size, char *buffer)
{
if(disk_size<(uint64_t)10*1024)
sprintf(buffer,"%u B", (unsigned)disk_size);
@@ -407,5 +407,4 @@ const char *size_to_unit(uint64_t disk_size, char *buffer)
sprintf(buffer,"%u GB / %u GiB", (unsigned)(disk_size/1000/1000/1000), (unsigned)(disk_size/1024/1024/1024));
else
sprintf(buffer,"%u TB / %u TiB", (unsigned)(disk_size/1000/1000/1000/1000), (unsigned)(disk_size/1024/1024/1024/1024));
- return buffer;
}