From 9073b0dccc6690c8f1974a58a231df7791ba1348 Mon Sep 17 00:00:00 2001 From: Ingo Weinhold Date: Thu, 30 Apr 2009 12:21:20 +0000 Subject: [PATCH] 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 --- headers/os/support/Debug.h | 2 +- src/system/libroot/os/debug.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/headers/os/support/Debug.h b/headers/os/support/Debug.h index 5a010769de..78aefdc678 100644 --- a/headers/os/support/Debug.h +++ b/headers/os/support/Debug.h @@ -31,7 +31,7 @@ extern "C" { int _sPrintf(const char *, ...); #endif int _xdebugPrintf(const char *, ...); - int _debuggerAssert(const char *, int, char *); + int _debuggerAssert(const char *, int, const char *); #ifdef __cplusplus } #endif diff --git a/src/system/libroot/os/debug.c b/src/system/libroot/os/debug.c index d689552d34..7ef95aa28a 100644 --- a/src/system/libroot/os/debug.c +++ b/src/system/libroot/os/debug.c @@ -254,7 +254,7 @@ _xdebugPrintf(const char *fmt, ...) int -_debuggerAssert(const char *file, int line, char *message) +_debuggerAssert(const char *file, int line, const char *message) { char buffer[1024]; snprintf(buffer, sizeof(buffer),