From 9d6f6b38ea87e42d5abeb329d2c20bbdde5c34c8 Mon Sep 17 00:00:00 2001 From: OBattler Date: Sat, 12 Dec 2020 16:28:04 +0100 Subject: [PATCH] Fixed a warning in cdrom/cdrom_image_backend.c. --- src/cdrom/cdrom_image_backend.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cdrom/cdrom_image_backend.c b/src/cdrom/cdrom_image_backend.c index 96f60ed61..3db993b8a 100644 --- a/src/cdrom/cdrom_image_backend.c +++ b/src/cdrom/cdrom_image_backend.c @@ -425,8 +425,8 @@ int cdi_read_sectors(cd_img_t *cdi, uint8_t *buffer, int raw, uint32_t sector, uint32_t num) { int sector_size, success = 1; - uint8_t buf_len, *buf; - uint32_t i; + uint8_t *buf; + uint32_t buf_len, i; /* TODO: This fails to account for Mode 2. Shouldn't we have a function to get sector size? */