aboutsummaryrefslogtreecommitdiff
path: root/gdb/python/py-gdb-readline.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/python/py-gdb-readline.c')
-rw-r--r--gdb/python/py-gdb-readline.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/python/py-gdb-readline.c b/gdb/python/py-gdb-readline.c
index 0cf4dfd..df14e28 100644
--- a/gdb/python/py-gdb-readline.c
+++ b/gdb/python/py-gdb-readline.c
@@ -63,7 +63,7 @@ gdbpy_readline_wrapper (FILE *sys_stdin, FILE *sys_stdout,
/* Detect EOF (Ctrl-D). */
if (p == NULL)
{
- q = PyMem_Malloc (1);
+ q = (char *) PyMem_Malloc (1);
if (q != NULL)
q[0] = '\0';
return q;
@@ -72,7 +72,7 @@ gdbpy_readline_wrapper (FILE *sys_stdin, FILE *sys_stdout,
n = strlen (p);
/* Copy the line to Python and return. */
- q = PyMem_Malloc (n + 2);
+ q = (char *) PyMem_Malloc (n + 2);
if (q != NULL)
{
strncpy (q, p, n);