Skip to contentSkip to conversation

ui/cocoa: Fix the type of main's argv

PATCH New Akihiko Odaki 1 participant 1 message Jul 8, 2021

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 ui/cocoa: Fix the type of main's argv

---
 ui/cocoa.m | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
ui/cocoa.m +2 -2
index 9f72844b079..68a6302184a 100644
@@ -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);
Signature · 1 line
2.30.1 (Apple Git-130)