From 814efda1d37f684d51998f45b15b03d39bf6259a Mon Sep 17 00:00:00 2001 From: Pierre-Alexandre Meyer Date: Thu, 3 Sep 2009 10:01:01 -0700 Subject: 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 --- com32/hdt/hdt-cli-disk.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'com32/hdt/hdt-cli-disk.c') 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)); } } -- cgit