aboutsummaryrefslogtreecommitdiffstats
path: root/com32/hdt/hdt-cli-disk.c
diff options
context:
space:
mode:
authorPierre-Alexandre Meyer <pierre@mouraf.org>2009-09-03 10:01:01 -0700
committerPierre-Alexandre Meyer <pierre@mouraf.org>2009-09-03 10:01:01 -0700
commit814efda1d37f684d51998f45b15b03d39bf6259a (patch)
tree746a756377901339a2f00d36ad326adb6707459f /com32/hdt/hdt-cli-disk.c
parent88ffe015e616908468580c5eb2be45cc86c04cd6 (diff)
downloadhdt-814efda1d37f684d51998f45b15b03d39bf6259a.tar.gz
hdt-814efda1d37f684d51998f45b15b03d39bf6259a.tar.xz
hdt-814efda1d37f684d51998f45b15b03d39bf6259a.zip
hdt: fix signedness warnings
host_bus_type and interface_type are uint8_t. Force a cast when calling remove_spaces on these fields. Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
Diffstat (limited to 'com32/hdt/hdt-cli-disk.c')
-rw-r--r--com32/hdt/hdt-cli-disk.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/com32/hdt/hdt-cli-disk.c b/com32/hdt/hdt-cli-disk.c
index 109d4944..bcd4400c 100644
--- a/com32/hdt/hdt-cli-disk.c
+++ b/com32/hdt/hdt-cli-disk.c
@@ -126,7 +126,7 @@ void main_show_disk(int argc, char **argv,
d->legacy_max_cylinder + 1, d->legacy_max_head + 1, d->legacy_sectors_per_track,
d->edd_version,
disk_size, (int) d->edd_params.bytes_per_sector, (int) d->edd_params.sectors_per_track,
- remove_spaces(d->edd_params.host_bus_type), remove_spaces(d->edd_params.interface_type));
+ remove_spaces((char *) d->edd_params.host_bus_type), remove_spaces((char*) d->edd_params.interface_type));
if (parse_partition_table(d, &show_partition_information)) {
if (errno_disk) {
@@ -182,8 +182,8 @@ void disks_summary(int argc __unused, char** argv __unused,
more_printf(" EDD: Version: %X, size: %s\n", d->edd_version,
disk_size);
more_printf(" Host bus: %s, Interface type: %s\n\n",
- remove_spaces(d->edd_params.host_bus_type),
- remove_spaces(d->edd_params.interface_type));
+ remove_spaces((char*) d->edd_params.host_bus_type),
+ remove_spaces((char*) d->edd_params.interface_type));
}
}