Commit c4ba190b authored by Frédéric Delanoy's avatar Frédéric Delanoy Committed by Alexandre Julliard

inetcomm: Constify some character strings.

parent 5605db6b
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment