projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
serial_write: change prototype to take a void-pointer buffer.
[deliverable/binutils-gdb.git]
/
gdb
/
ser-base.c
diff --git
a/gdb/ser-base.c
b/gdb/ser-base.c
index c602650b2ec29c087127bee63faa33fce4d319b5..52c57264931642dcf2ce6b84d84638b91ad310f8 100644
(file)
--- a/
gdb/ser-base.c
+++ b/
gdb/ser-base.c
@@
-440,17
+440,18
@@
ser_base_readchar (struct serial *scb, int timeout)
}
int
}
int
-ser_base_write (struct serial *scb, const
char *str, int len
)
+ser_base_write (struct serial *scb, const
void *buf, size_t count
)
{
{
+ const char *str = buf;
int cc;
int cc;
- while (
len
> 0)
+ while (
count
> 0)
{
{
- cc = scb->ops->write_prim (scb, str,
len);
+ cc = scb->ops->write_prim (scb, str,
count);
if (cc < 0)
return 1;
if (cc < 0)
return 1;
-
len
-= cc;
+
count
-= cc;
str += cc;
}
return 0;
str += cc;
}
return 0;
This page took
0.025507 seconds
and
4
git commands to generate.