summaryrefslogtreecommitdiffstats
path: root/remote.c
diff options
context:
space:
mode:
authorJiri Gaisler <jiri@gaisler.se>2019-06-11 22:30:10 +0200
committerJiri Gaisler <jiri@gaisler.se>2019-06-11 22:30:10 +0200
commit313c2c1643889a5b84dd0cff3886b22e821a5f34 (patch)
treedba621bdc66d231581eb4d34ba504c0847df3ff9 /remote.c
parentAvoid array out of bounds warning on RISC-V (diff)
downloadsis-313c2c1643889a5b84dd0cff3886b22e821a5f34.tar.bz2
Fix C formatting with indent
Diffstat (limited to 'remote.c')
-rw-r--r--remote.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/remote.c b/remote.c
index 7cc7344..f18baa8 100644
--- a/remote.c
+++ b/remote.c
@@ -373,10 +373,11 @@ gdb_remote_exec (char *buf)
{
cptr = &buf[6];
mptr = membuf;
- while (*cptr != '#') {
- *mptr = hex (*cptr++) << 4;
- *mptr++ |= hex (*cptr++);
- }
+ while (*cptr != '#')
+ {
+ *mptr = hex (*cptr++) << 4;
+ *mptr++ |= hex (*cptr++);
+ }
*mptr = 0;
exec_cmd (membuf);
strcpy (txbuf, "OK");