[memprof: 19/76] process.c: Properly cast the const char* to char*
- From: Holger Hans Peter Freyther <hfreyther src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [memprof: 19/76] process.c: Properly cast the const char* to char*
- Date: Sun, 13 Jun 2010 03:39:49 +0000 (UTC)
commit 9257beff251881518d4a77bf4361299ab8a3ffeb
Author: Holger Hans Peter Freyther <zecke selfish org>
Date: Thu Jun 4 13:09:30 2009 +0200
process.c: Properly cast the const char* to char*
src/process.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/process.c b/src/process.c
index 8b11c7f..4fefd1e 100644
--- a/src/process.c
+++ b/src/process.c
@@ -248,12 +248,12 @@ process_find_line (MPProcess *process, void *address,
const char **filename, char **functionname,
unsigned int *line)
{
- char *s = process_locate_symbol (process, address);
+ const char *s = process_locate_symbol (process, address);
if (s)
{
*filename = NULL;
- *functionname = s;
+ *functionname = (char*)s;
*line = -1;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]