From 8ec41d45039eb4498f65d4703cb30e054e92f056 Mon Sep 17 00:00:00 2001 From: Mark Pizzolato Date: Sun, 16 Jul 2023 09:56:15 -1000 Subject: [PATCH] FIO: Fix clang warnings in _sim_expand_honedir --- sim_fio.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sim_fio.c b/sim_fio.c index 647117ca..3d5a459c 100644 --- a/sim_fio.c +++ b/sim_fio.c @@ -366,7 +366,7 @@ return TRUE; static char *_sim_expand_homedir (const char *file, char *dest, size_t dest_size) { -uint8 *without_quotes = NULL; +char *without_quotes = NULL; errno = 0; if (((*file == '"') && (file[strlen (file) - 1] == '"')) || @@ -375,7 +375,7 @@ if (((*file == '"') && (file[strlen (file) - 1] == '"')) || const char *end = &file[strlen (file) - 1]; char quote = *file; - without_quotes = (uint8*)malloc (strlen (file) + 1); + without_quotes = (char *)malloc (strlen (file) + 1); if (without_quotes == NULL) return NULL; strcpy (without_quotes, file + 1);