From 0e7e87875ca480057cb8d35ff6832a7c3b93dc5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Delanoy?= Date: Tue, 31 Dec 2013 03:00:47 +0100 Subject: [PATCH] wininet/tests: Constify some character strings. --- dlls/wininet/tests/http.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/dlls/wininet/tests/http.c b/dlls/wininet/tests/http.c index 951460fe896..2f9c36c5b6c 100644 --- a/dlls/wininet/tests/http.c +++ b/dlls/wininet/tests/http.c @@ -2330,13 +2330,13 @@ static void test_proxy_direct(int port) DWORD r, sz, error; char buffer[0x40], *url; WCHAR bufferW[0x40]; + static const char url_fmt[] = "http://test.winehq.org:%u/test2"; static CHAR username[] = "mike", password[] = "1101", - useragent[] = "winetest", - url_fmt[] = "http://test.winehq.org:%u/test2"; - static WCHAR usernameW[] = {'m','i','k','e',0}, - passwordW[] = {'1','1','0','1',0}, - useragentW[] = {'w','i','n','e','t','e','s','t',0}; + useragent[] = "winetest"; + static const WCHAR usernameW[] = {'m','i','k','e',0}, + passwordW[] = {'1','1','0','1',0}, + useragentW[] = {'w','i','n','e','t','e','s','t',0}; /* specify proxy type without the proxy and bypass */ SetLastError(0xdeadbeef); @@ -2675,8 +2675,8 @@ done: static void test_header_handling_order(int port) { - static char authorization[] = "Authorization: Basic dXNlcjpwd2Q="; - static char connection[] = "Connection: Close"; + static const char authorization[] = "Authorization: Basic dXNlcjpwd2Q="; + static const char connection[] = "Connection: Close"; static const char *types[2] = { "*", NULL }; HINTERNET session, connect, request;