[12/13] installer: Fix more const warnings

Message ID 20240405125942.1803058-12-michael.tremer@ipfire.org
State Staged
Commit af932f13dd270e2faa605ae20a3107fdf12ee2ef
Headers
Series [01/13] installer: Update language files |

Commit Message

Michael Tremer April 5, 2024, 12:59 p.m. UTC
  Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
---
 src/installer/main.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
  

Patch

diff --git a/src/installer/main.c b/src/installer/main.c
index 6253df550..944ffa593 100644
--- a/src/installer/main.c
+++ b/src/installer/main.c
@@ -595,7 +595,7 @@  int main(int argc, char *argv[]) {
 
 	// Check how many disks have been found and what
 	// we can do with them.
-	unsigned int num_disks = hw_count_disks((const struct hw_disk**)disks);
+	unsigned int num_disks = hw_count_disks(disks);
 
 	while (1) {
 		// no harddisks found
@@ -647,7 +647,7 @@  int main(int argc, char *argv[]) {
 		if (config.unattended)
 			break;
 
-		num_selected_disks = hw_count_disks((const struct hw_disk**)selected_disks);
+		num_selected_disks = hw_count_disks(selected_disks);
 
 		if (num_selected_disks == 1) {
 			snprintf(message, sizeof(message),