From fb28614a114c8633fd3823935cd2211a6b191d3e Mon Sep 17 00:00:00 2001 From: Andrew Talbot Date: Mon, 6 Nov 2006 21:36:23 +0000 Subject: [PATCH] ntdll: Cast-qual warning fix. --- dlls/ntdll/server.c | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/dlls/ntdll/server.c b/dlls/ntdll/server.c index 2d6235c812..dffd03bb4f 100644 --- a/dlls/ntdll/server.c +++ b/dlls/ntdll/server.c @@ -869,15 +869,19 @@ static void create_config_dir(void) } if (!pid) { - const char *argv[6]; - - argv[0] = "tools/wineprefixcreate"; - argv[1] = "--quiet"; - argv[2] = "--wait"; - argv[3] = "--prefix"; + char *argv[6]; + static char argv0[] = "tools/wineprefixcreate", + argv1[] = "--quiet", + argv2[] = "--wait", + argv3[] = "--prefix"; + + argv[0] = argv0; + argv[1] = argv1; + argv[2] = argv2; + argv[3] = argv3; argv[4] = tmp_dir; argv[5] = NULL; - wine_exec_wine_binary( argv[0], (char **)argv, NULL ); + wine_exec_wine_binary( argv[0], argv, NULL ); rmdir( tmp_dir ); fatal_perror( "could not exec wineprefixcreate" ); } -- 2.32.0.93.g670b81a890