wininet: Constify some variables

Andrew Talbot Andrew.Talbot at talbotville.com
Sat Feb 24 15:55:12 CST 2007


Changelog:
    wininet: Constify some variables.

diff -urN a/dlls/wininet/ftp.c b/dlls/wininet/ftp.c
--- a/dlls/wininet/ftp.c	2007-02-20 21:13:26.000000000 +0000
+++ b/dlls/wininet/ftp.c	2007-02-24 20:55:53.000000000 +0000
@@ -95,7 +95,7 @@
   FTP_CMD_QUIT,
 } FTP_COMMAND;
 
-static const CHAR *szFtpCommands[] = {
+static const CHAR *const szFtpCommands[] = {
   "ACCT",
   "CWD",
   "DELE",
diff -urN a/dlls/wininet/http.c b/dlls/wininet/http.c
--- a/dlls/wininet/http.c	2007-02-13 17:12:39.000000000 +0000
+++ b/dlls/wininet/http.c	2007-02-24 20:55:39.000000000 +0000
@@ -851,7 +851,7 @@
 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-patches mailing list