aboutsummaryrefslogtreecommitdiff
path: root/gdb/mi/mi-console.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/mi/mi-console.c')
-rw-r--r--gdb/mi/mi-console.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/gdb/mi/mi-console.c b/gdb/mi/mi-console.c
index 257f452..e0947e0 100644
--- a/gdb/mi/mi-console.c
+++ b/gdb/mi/mi-console.c
@@ -67,7 +67,8 @@ mi_console_file_new (struct ui_file *raw, const char *prefix, char quote)
static void
mi_console_file_delete (struct ui_file *file)
{
- struct mi_console_file *mi_console = ui_file_data (file);
+ struct mi_console_file *mi_console
+ = (struct mi_console_file *) ui_file_data (file);
if (mi_console->magic != &mi_console_file_magic)
internal_error (__FILE__, __LINE__,
@@ -79,7 +80,8 @@ mi_console_file_delete (struct ui_file *file)
static void
mi_console_file_fputs (const char *buf, struct ui_file *file)
{
- struct mi_console_file *mi_console = ui_file_data (file);
+ struct mi_console_file *mi_console
+ = (struct mi_console_file *) ui_file_data (file);
if (mi_console->magic != &mi_console_file_magic)
internal_error (__FILE__, __LINE__,
@@ -97,7 +99,7 @@ mi_console_file_fputs (const char *buf, struct ui_file *file)
static void
mi_console_raw_packet (void *data, const char *buf, long length_buf)
{
- struct mi_console_file *mi_console = data;
+ struct mi_console_file *mi_console = (struct mi_console_file *) data;
if (mi_console->magic != &mi_console_file_magic)
internal_error (__FILE__, __LINE__,
@@ -126,7 +128,8 @@ mi_console_raw_packet (void *data, const char *buf, long length_buf)
static void
mi_console_file_flush (struct ui_file *file)
{
- struct mi_console_file *mi_console = ui_file_data (file);
+ struct mi_console_file *mi_console
+ = (struct mi_console_file *) ui_file_data (file);
if (mi_console->magic != &mi_console_file_magic)
internal_error (__FILE__, __LINE__,
@@ -144,7 +147,8 @@ mi_console_file_flush (struct ui_file *file)
void
mi_console_set_raw (struct ui_file *file, struct ui_file *raw)
{
- struct mi_console_file *mi_console = ui_file_data (file);
+ struct mi_console_file *mi_console
+ = (struct mi_console_file *) ui_file_data (file);
if (mi_console->magic != &mi_console_file_magic)
internal_error (__FILE__, __LINE__,