- Replace 'while(' with 'while ('.

git-svn-id: svn://svn.berlios.de/openocd/trunk@2358 b42882b7-edfa-0310-969c-e2dbd0fdcd60
This commit is contained in:
zwelch
2009-06-23 22:36:11 +00:00
parent e43979e702
commit 50c086ffb9
24 changed files with 124 additions and 124 deletions

View File

@@ -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;