aboutsummaryrefslogtreecommitdiffstats
path: root/com32
diff options
context:
space:
mode:
authorPierre-Alexandre Meyer <pierre@mouraf.org>2009-03-14 16:36:09 -0700
committerPierre-Alexandre Meyer <pierre@mouraf.org>2009-03-14 16:36:09 -0700
commit743eb5ede132f9a00aadf2d5427e9f6fb202a005 (patch)
tree12e576b42a3e8961cd328bd1effec8e05e9e635c /com32
parent414df4e5d0d9d36d4fba8db5fa51837eb7514405 (diff)
downloadsyslinux.git-743eb5ede132f9a00aadf2d5427e9f6fb202a005.tar.gz
syslinux.git-743eb5ede132f9a00aadf2d5427e9f6fb202a005.tar.xz
syslinux.git-743eb5ede132f9a00aadf2d5427e9f6fb202a005.zip
hdt: Force cast when dereferencing menu->disk_sub_menu
Impact: Fix compilation warning. A cast is necessary in compute_disks. Signed-off-by: Pierre-Alexandre Meyer <pierre@mouraf.org>
Diffstat (limited to 'com32')
-rw-r--r--com32/hdt/hdt-menu-disk.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/com32/hdt/hdt-menu-disk.c b/com32/hdt/hdt-menu-disk.c
index 5a29bddb..1b273036 100644
--- a/com32/hdt/hdt-menu-disk.c
+++ b/com32/hdt/hdt-menu-disk.c
@@ -158,7 +158,7 @@ void compute_disks(struct s_hdt_menu *menu, struct diskinfo *disk_info)
int nb_sub_disk_menu = 0;
for (int i = 0; i < 0xff; i++) {
if (compute_disk_module
- (&(menu->disk_sub_menu), nb_sub_disk_menu, disk_info,
+ ((struct s_my_menu*) &(menu->disk_sub_menu), nb_sub_disk_menu, disk_info,
i) == 0)
nb_sub_disk_menu++;
}