From 40a9aadbc9900f8b50fffe485df7cc0bfb9ec01c Mon Sep 17 00:00:00 2001 From: Akihiko Odaki Date: Fri, 9 Jul 2021 01:56:19 +0900 Subject: [PATCH] ui/cocoa: Fix the type of main's argv Signed-off-by: Akihiko Odaki Reviewed-by: Peter Maydell Message-Id: <20210708165619.29299-1-akihiko.odaki@gmail.com> Signed-off-by: Gerd Hoffmann --- ui/cocoa.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/cocoa.m b/ui/cocoa.m index 9f72844b07..68a6302184 100644 --- a/ui/cocoa.m +++ b/ui/cocoa.m @@ -1888,12 +1888,12 @@ static void cocoa_clipboard_request(QemuClipboardInfo *info, exit(status); } -int main (int argc, const char * argv[]) { +int main (int argc, char **argv) { QemuThread thread; COCOA_DEBUG("Entered main()\n"); gArgc = argc; - gArgv = (char **)argv; + gArgv = argv; qemu_sem_init(&display_init_sem, 0); qemu_sem_init(&app_started_sem, 0);