From 29034cf2705a30c0fb96afe4b0a549dd1c5638e2 Mon Sep 17 00:00:00 2001 From: Fredrik Holmqvist Date: Thu, 18 Mar 2021 22:04:57 +0100 Subject: [PATCH] CDDA, stop returning error status as a float It is a bit unorthodox, and we expect a number on how well you can handle the partition. Change-Id: Ie1b5d4e0a8e2411f9782957d7f124756f992a086 Reviewed-on: https://review.haiku-os.org/c/haiku/+/3805 Reviewed-by: Adrien Destugues --- src/add-ons/kernel/file_systems/cdda/kernel_interface.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/add-ons/kernel/file_systems/cdda/kernel_interface.cpp b/src/add-ons/kernel/file_systems/cdda/kernel_interface.cpp index 32921c2c26..0426564e05 100644 --- a/src/add-ons/kernel/file_systems/cdda/kernel_interface.cpp +++ b/src/add-ons/kernel/file_systems/cdda/kernel_interface.cpp @@ -1392,7 +1392,7 @@ cdda_identify_partition(int fd, partition_data* partition, void** _cookie) { scsi_toc_toc* toc = (scsi_toc_toc*)malloc(2048); if (toc == NULL) - return B_NO_MEMORY; + return -1; status_t status = read_table_of_contents(fd, toc, 2048); @@ -1432,7 +1432,7 @@ cdda_identify_partition(int fd, partition_data* partition, void** _cookie) if (status != B_OK) { free(toc); - return status; + return -1; } *_cookie = toc;