Andrew Talbot : wininet: Constify some variables.
Alexandre Julliard
julliard at wine.codeweavers.com
Mon Feb 26 07:59:25 CST 2007
Module: wine
Branch: master
Commit: 46fc9c2e11700496b67ba98e03ba27595e535529
URL: http://source.winehq.org/git/wine.git/?a=commit;h=46fc9c2e11700496b67ba98e03ba27595e535529
Author: Andrew Talbot <Andrew.Talbot at talbotville.com>
Date: Sat Feb 24 21:55:12 2007 +0000
wininet: Constify some variables.
---
dlls/wininet/ftp.c | 2 +-
dlls/wininet/http.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/wininet/ftp.c b/dlls/wininet/ftp.c
index 05fd301..81ebdb9 100644
--- a/dlls/wininet/ftp.c
+++ b/dlls/wininet/ftp.c
@@ -95,7 +95,7 @@ typedef enum {
FTP_CMD_QUIT,
} FTP_COMMAND;
-static const CHAR *szFtpCommands[] = {
+static const CHAR *const szFtpCommands[] = {
"ACCT",
"CWD",
"DELE",
diff --git a/dlls/wininet/http.c b/dlls/wininet/http.c
index 17e48c9..08c057d 100644
--- a/dlls/wininet/http.c
+++ b/dlls/wininet/http.c
@@ -851,7 +851,7 @@ end:
static UINT HTTP_EncodeBase64( LPCSTR bin, unsigned int len, LPWSTR base64 )
{
UINT n = 0, x;
- static LPCSTR HTTP_Base64Enc =
+ static const CHAR HTTP_Base64Enc[] =
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
while( len > 0 )
More information about the wine-cvs
mailing list