summaryrefslogtreecommitdiff
path: root/src/helper/command.c
diff options
context:
space:
mode:
authorzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-06-23 22:36:11 +0000
committerzwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2009-06-23 22:36:11 +0000
commit50c086ffb94f199c088f4cc52b7887b668dddf00 (patch)
treef82cbcc5acf534e762fa623923c2b39de0fc07cd /src/helper/command.c
parente43979e7020ea9d05a3c0a2af444f292eacb6c53 (diff)
downloadopenocd+libswd-50c086ffb94f199c088f4cc52b7887b668dddf00.tar.gz
openocd+libswd-50c086ffb94f199c088f4cc52b7887b668dddf00.tar.bz2
openocd+libswd-50c086ffb94f199c088f4cc52b7887b668dddf00.tar.xz
openocd+libswd-50c086ffb94f199c088f4cc52b7887b668dddf00.zip
- Replace 'while(' with 'while ('.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2358 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/helper/command.c')
-rw-r--r--src/helper/command.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/helper/command.c b/src/helper/command.c
index ec1d637f..64056843 100644
--- a/src/helper/command.c
+++ b/src/helper/command.c
@@ -269,11 +269,11 @@ int unregister_all_commands(command_context_t *context)
if (context == NULL)
return ERROR_OK;
- while(NULL != context->commands)
+ while (NULL != context->commands)
{
c = context->commands;
- while(NULL != c->children)
+ while (NULL != c->children)
{
c2 = c->children;
c->children = c->children->next;
@@ -304,7 +304,7 @@ int unregister_command(command_context_t *context, char *name)
/* find command */
c = context->commands;
- while(NULL != c)
+ while (NULL != c)
{
if (strcmp(name, c->name) == 0)
{
@@ -320,7 +320,7 @@ int unregister_command(command_context_t *context, char *name)
}
/* unregister children */
- while(NULL != c->children)
+ while (NULL != c->children)
{
c2 = c->children;
c->children = c->children->next;