- Fixes '-=' whitespace
- Replace '\(\w\)\(-=\)(' with '\1 \2 ('.
- Replace '\(\w\)\(-=\)\(\w\)' with '\1 \2 \3'.
---
 server/telnet_server.c |    2 +-
 target/image.c         |    2 +-
 target/target.c        |    8 ++++----
 3 files changed, 6 insertions(+), 6 deletions(-)
Fix two-character binary operator whitespace issues throughout the tree:
- Fixes '-=' whitespace
- Replace '\(\w\)\(-=\)(' with '\1 \2 ('.
- Replace '\(\w\)\(-=\)\(\w\)' with '\1 \2 \3'.
---
 server/telnet_server.c |    2 +-
 target/image.c         |    2 +-
 target/target.c        |    8 ++++----
 3 files changed, 6 insertions(+), 6 deletions(-)
======
diff -u src/target/image.c src/target/image.c
--- src/target/image.c	(working copy)
+++ src/target/image.c	(working copy)
@@ -1022,7 +1022,7 @@
 		{
 			run=32768;
 		}
-		nbytes-=run;
+		nbytes -= run;
 		while (run--)
 		{
 			/* as per gdb */
diff -u src/target/target.c src/target/target.c
--- src/target/target.c	(working copy)
+++ src/target/target.c	(working copy)
@@ -2252,12 +2252,12 @@
 			{
 				/* clip addresses below */
 				offset+=min_address-image.sections[i].base_address;
-				length-=offset;
+				length -= offset;
 			}
 
 			if (image.sections[i].base_address+buf_cnt>max_address)
 			{
-				length-=(image.sections[i].base_address+buf_cnt)-max_address;
+				length -= (image.sections[i].base_address+buf_cnt)-max_address;
 			}
 
 			if ((retval = target_write_buffer(target, image.sections[i].base_address+offset, length, buffer+offset)) != ERROR_OK)
@@ -4400,12 +4400,12 @@
 			{
 				/* clip addresses below */
 				offset+=min_address-image.sections[i].base_address;
-				length-=offset;
+				length -= offset;
 			}
 
 			if (image.sections[i].base_address+buf_cnt>max_address)
 			{
-				length-=(image.sections[i].base_address+buf_cnt)-max_address;
+				length -= (image.sections[i].base_address+buf_cnt)-max_address;
 			}
 
 			fastload[i].address=image.sections[i].base_address+offset;
only in patch2:
unchanged:
--- src/server/telnet_server.c	(revision 2272)
+++ src/server/telnet_server.c	(working copy)
@@ -120,7 +120,7 @@
 
 	/* clear the command line */
 	telnet_write(connection, "\r", 1);
-	for (i = strlen(t_con->prompt) + t_con->line_size; i>0; i-=16)
+	for (i = strlen(t_con->prompt) + t_con->line_size; i>0; i -= 16)
 		telnet_write(connection, "                ", i>16 ? 16 : i);
 	telnet_write(connection, "\r", 1);
 
_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to