Author: gschneider
Date: Mon Aug 24 14:06:53 2009
New Revision: 42908
URL:
http://svn.reactos.org/svn/reactos?rev=42908&view=rev
Log:
gdb2: Use const char* for string constants, gcc 4.4 warnings
Modified:
trunk/rosapps/applications/devutils/gdb2/gdb2.cpp
Modified: trunk/rosapps/applications/devutils/gdb2/gdb2.cpp
URL:
http://svn.reactos.org/svn/reactos/trunk/rosapps/applications/devutils/gdb2…
==============================================================================
--- trunk/rosapps/applications/devutils/gdb2/gdb2.cpp [iso-8859-1] (original)
+++ trunk/rosapps/applications/devutils/gdb2/gdb2.cpp [iso-8859-1] Mon Aug 24 14:06:53
2009
@@ -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 @@
// DisplayError
// Displays the error number and corresponding message.
///////////////////////////////////////////////////////////////////////
-void DisplayError(char *pszAPI)
+void DisplayError(const char *pszAPI)
{
LPVOID lpvMessageBuffer;
CHAR szPrintBuffer[512];