aboutsummaryrefslogtreecommitdiff
path: root/gdb/serial.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/serial.c')
-rw-r--r--gdb/serial.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/serial.c b/gdb/serial.c
index 74567db..abc050e 100644
--- a/gdb/serial.c
+++ b/gdb/serial.c
@@ -404,7 +404,7 @@ serial_write (struct serial *scb, const void *buf, size_t count)
{
if (serial_logfp != NULL)
{
- const char *str = buf;
+ const char *str = (const char *) buf;
size_t c;
for (c = 0; c < count; c++)
@@ -416,7 +416,7 @@ serial_write (struct serial *scb, const void *buf, size_t count)
}
if (serial_debug_p (scb))
{
- const char *str = buf;
+ const char *str = (const char *) buf;
size_t c;
for (c = 0; c < count; c++)