summaryrefslogtreecommitdiff
path: root/gdb/ser-tcp.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/ser-tcp.c')
-rw-r--r--gdb/ser-tcp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/ser-tcp.c b/gdb/ser-tcp.c
index f8b6d2eb100..3ff15413e83 100644
--- a/gdb/ser-tcp.c
+++ b/gdb/ser-tcp.c
@@ -241,9 +241,9 @@ net_read_prim (struct serial *scb, size_t count)
}
static int
-net_write_prim (struct serial *scb, const char *str, int len)
+net_write_prim (struct serial *scb, const void *buf, size_t count)
{
- return send (scb->fd, str, len, 0);
+ return send (scb->fd, buf, count, 0);
}
void