summaryrefslogtreecommitdiff
path: root/src/helper/ioutil.c
diff options
context:
space:
mode:
authorzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-06-23 22:39:47 +0000
committerzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-06-23 22:39:47 +0000
commit128a73342856217e98a5da64b2805e062fd4e00d (patch)
tree3cd1656b9f3eb2e9be261b003283dce596362d7a /src/helper/ioutil.c
parent319fdecb76318ec982855f298b1a4a3a60375748 (diff)
downloadopenocd+libswd-128a73342856217e98a5da64b2805e062fd4e00d.tar.gz
openocd+libswd-128a73342856217e98a5da64b2805e062fd4e00d.tar.bz2
openocd+libswd-128a73342856217e98a5da64b2805e062fd4e00d.tar.xz
openocd+libswd-128a73342856217e98a5da64b2805e062fd4e00d.zip
- Fixes '&&' whitespace
- Replace ')\(&&\)(' with ') \1 ('. - Replace '\(\w\)\(&&\)(' with '\1 \2 ('. - Replace '\(\w\)\(&&\)\(\w\)' with '\1 \2 \3'. git-svn-id: svn://svn.berlios.de/openocd/trunk@2366 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/helper/ioutil.c')
-rw-r--r--src/helper/ioutil.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/helper/ioutil.c b/src/helper/ioutil.c
index de4e880a..4c09b779 100644
--- a/src/helper/ioutil.c
+++ b/src/helper/ioutil.c
@@ -233,7 +233,7 @@ int handle_append_command(struct command_context_s *cmd_ctx, char *cmd,
break;
}
}
- if ((i==argc)&&(fwrite("\n", 1, 1, config_file)==1))
+ if ((i==argc) && (fwrite("\n", 1, 1, config_file)==1))
{
retval=ERROR_OK;
}
@@ -274,7 +274,7 @@ int handle_cp_command(struct command_context_s *cmd_ctx, char *cmd, char **args,
chunk = maxChunk;
}
- if ((retval==ERROR_OK)&&(fwrite(((char *)data)+pos, 1, chunk, f) != chunk))
+ if ((retval==ERROR_OK) && (fwrite(((char *)data)+pos, 1, chunk, f) != chunk))
retval = ERROR_INVALID_ARGUMENTS;
if (retval != ERROR_OK)