gdb2: Use const char* for string constants, gcc 4.4 warnings

svn path=/trunk/; revision=42908
This commit is contained in:
Gregor Schneider 2009-08-24 12:06:53 +00:00
parent aab0f77c13
commit 2296d0a5dd

View file

@ -26,7 +26,7 @@
#define PARAMS_SEPARATOR " "
#define PARAMS_SEPARATOR_LEN strlen(PARAMS_SEPARATOR);
void DisplayError(char *pszAPI);
void DisplayError(const char *pszAPI);
void ReadAndHandleOutput(HANDLE hPipeRead);
void PrepAndLaunchRedirectedChild(HANDLE hChildStdOut,
HANDLE hChildStdIn,
@ -274,7 +274,7 @@ DWORD WINAPI GetAndSendInputThread(LPVOID lpvThreadParam)
// DisplayError
// Displays the error number and corresponding message.
///////////////////////////////////////////////////////////////////////
void DisplayError(char *pszAPI)
void DisplayError(const char *pszAPI)
{
LPVOID lpvMessageBuffer;
CHAR szPrintBuffer[512];