Made _debuggerAssert()'s "message" parameter const. Fixes building with gcc4.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30502 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold
2009-04-30 12:21:20 +00:00
parent bea425f17c
commit 9073b0dccc
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ extern "C" {
int _sPrintf(const char *, ...); int _sPrintf(const char *, ...);
#endif #endif
int _xdebugPrintf(const char *, ...); int _xdebugPrintf(const char *, ...);
int _debuggerAssert(const char *, int, char *); int _debuggerAssert(const char *, int, const char *);
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif
+1 -1
View File
@@ -254,7 +254,7 @@ _xdebugPrintf(const char *fmt, ...)
int int
_debuggerAssert(const char *file, int line, char *message) _debuggerAssert(const char *file, int line, const char *message)
{ {
char buffer[1024]; char buffer[1024];
snprintf(buffer, sizeof(buffer), snprintf(buffer, sizeof(buffer),