=?UTF-8?Q?Fr=C3=A9d=C3=A9ric=20Delanoy=20?=: inetcomm: Constify some character strings.
Alexandre Julliard
julliard at winehq.org
Tue Dec 17 14:05:00 CST 2013
Module: wine
Branch: master
Commit: c4ba190ba3a28db477e79a3a91318d35f3892624
URL: http://source.winehq.org/git/wine.git/?a=commit;h=c4ba190ba3a28db477e79a3a91318d35f3892624
Author: Frédéric Delanoy <frederic.delanoy at gmail.com>
Date: Mon Dec 16 23:26:09 2013 +0100
inetcomm: Constify some character strings.
---
dlls/inetcomm/pop3transport.c | 26 +++++++++++++-------------
1 files changed, 13 insertions(+), 13 deletions(-)
diff --git a/dlls/inetcomm/pop3transport.c b/dlls/inetcomm/pop3transport.c
index d275f21..1c8bc91 100644
--- a/dlls/inetcomm/pop3transport.c
+++ b/dlls/inetcomm/pop3transport.c
@@ -633,7 +633,7 @@ static void POP3Transport_CallbackRecvPASSResp(IInternetTransport *iface, char *
static void POP3Transport_CallbackProcessUSERResp(IInternetTransport *iface, char *pBuffer, int cbBuffer)
{
- static char pass[] = "PASS ";
+ static const char pass[] = "PASS ";
POP3Transport *This = (POP3Transport *)iface;
POP3RESPONSE response;
char *command;
@@ -674,7 +674,7 @@ static void POP3Transport_CallbackRecvUSERResp(IInternetTransport *iface, char *
static void POP3Transport_CallbackSendUSERCmd(IInternetTransport *iface, char *pBuffer, int cbBuffer)
{
- static char user[] = "USER ";
+ static const char user[] = "USER ";
POP3Transport *This = (POP3Transport *)iface;
char *command;
int len;
@@ -870,7 +870,7 @@ static HRESULT WINAPI POP3Transport_CommandAUTH(IPOP3Transport *iface, LPSTR psz
static HRESULT WINAPI POP3Transport_CommandUSER(IPOP3Transport *iface, LPSTR username)
{
- static char user[] = "USER ";
+ static const char user[] = "USER ";
POP3Transport *This = (POP3Transport *)iface;
char *command;
int len;
@@ -893,7 +893,7 @@ static HRESULT WINAPI POP3Transport_CommandUSER(IPOP3Transport *iface, LPSTR use
static HRESULT WINAPI POP3Transport_CommandPASS(IPOP3Transport *iface, LPSTR password)
{
- static char pass[] = "PASS ";
+ static const char pass[] = "PASS ";
POP3Transport *This = (POP3Transport *)iface;
char *command;
int len;
@@ -917,7 +917,7 @@ static HRESULT WINAPI POP3Transport_CommandPASS(IPOP3Transport *iface, LPSTR pas
static HRESULT WINAPI POP3Transport_CommandLIST(
IPOP3Transport *iface, POP3CMDTYPE cmdtype, DWORD dwPopId)
{
- static char list[] = "LIST %u\r\n";
+ static const char list[] = "LIST %u\r\n";
static char list_all[] = "LIST\r\n";
POP3Transport *This = (POP3Transport *)iface;
char *command;
@@ -944,7 +944,7 @@ static HRESULT WINAPI POP3Transport_CommandLIST(
static HRESULT WINAPI POP3Transport_CommandTOP(
IPOP3Transport *iface, POP3CMDTYPE cmdtype, DWORD dwPopId, DWORD cPreviewLines)
{
- static char top[] = "TOP %u %u\r\n";
+ static const char top[] = "TOP %u %u\r\n";
POP3Transport *This = (POP3Transport *)iface;
char *command;
int len;
@@ -966,7 +966,7 @@ static HRESULT WINAPI POP3Transport_CommandTOP(
static HRESULT WINAPI POP3Transport_CommandQUIT(IPOP3Transport *iface)
{
- static char command[] = "QUIT\r\n";
+ static const char command[] = "QUIT\r\n";
POP3Transport *This = (POP3Transport *)iface;
TRACE("()\n");
@@ -979,7 +979,7 @@ static HRESULT WINAPI POP3Transport_CommandQUIT(IPOP3Transport *iface)
static HRESULT WINAPI POP3Transport_CommandSTAT(IPOP3Transport *iface)
{
- static char stat[] = "STAT\r\n";
+ static const char stat[] = "STAT\r\n";
POP3Transport *This = (POP3Transport *)iface;
TRACE("\n");
@@ -991,7 +991,7 @@ static HRESULT WINAPI POP3Transport_CommandSTAT(IPOP3Transport *iface)
static HRESULT WINAPI POP3Transport_CommandNOOP(IPOP3Transport *iface)
{
- static char noop[] = "NOOP\r\n";
+ static const char noop[] = "NOOP\r\n";
POP3Transport *This = (POP3Transport *)iface;
TRACE("\n");
@@ -1003,7 +1003,7 @@ static HRESULT WINAPI POP3Transport_CommandNOOP(IPOP3Transport *iface)
static HRESULT WINAPI POP3Transport_CommandRSET(IPOP3Transport *iface)
{
- static char rset[] = "RSET\r\n";
+ static const char rset[] = "RSET\r\n";
POP3Transport *This = (POP3Transport *)iface;
TRACE("\n");
@@ -1016,7 +1016,7 @@ static HRESULT WINAPI POP3Transport_CommandRSET(IPOP3Transport *iface)
static HRESULT WINAPI POP3Transport_CommandUIDL(
IPOP3Transport *iface, POP3CMDTYPE cmdtype, DWORD dwPopId)
{
- static char uidl[] = "UIDL %u\r\n";
+ static const char uidl[] = "UIDL %u\r\n";
static char uidl_all[] = "UIDL\r\n";
POP3Transport *This = (POP3Transport *)iface;
char *command;
@@ -1043,7 +1043,7 @@ static HRESULT WINAPI POP3Transport_CommandUIDL(
static HRESULT WINAPI POP3Transport_CommandDELE(
IPOP3Transport *iface, POP3CMDTYPE cmdtype, DWORD dwPopId)
{
- static char dele[] = "DELE %u\r\n";
+ static const char dele[] = "DELE %u\r\n";
POP3Transport *This = (POP3Transport *)iface;
char *command;
int len;
@@ -1065,7 +1065,7 @@ static HRESULT WINAPI POP3Transport_CommandDELE(
static HRESULT WINAPI POP3Transport_CommandRETR(
IPOP3Transport *iface, POP3CMDTYPE cmdtype, DWORD dwPopId)
{
- static char retr[] = "RETR %u\r\n";
+ static const char retr[] = "RETR %u\r\n";
POP3Transport *This = (POP3Transport *)iface;
char *command;
int len;
More information about the wine-cvs
mailing list