diff options
author | zwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-06-23 22:38:12 +0000 |
---|---|---|
committer | zwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-06-23 22:38:12 +0000 |
commit | 53d605e12c3765aeedabf2bfe0c5cc338dc95d5a (patch) | |
tree | 574d59fe89c1af06fbc67b38cb2d0a3f9a6ef1d7 /src/openocd.c | |
parent | 5e98c71436569d39ac9fe0fb66910f28c0e531f8 (diff) |
- Fixes '!=' whitespace
- Replace ')\(!=\)\(\w\)' with ') \1 \2'.
- Replace '\(\w\)\(!=\)(' with '\1 \2 ('.
- Replace '\(\w\)\(!=\)\(\w\)' with '\1 \2 \3'.
git-svn-id: svn://svn.berlios.de/openocd/trunk@2363 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/openocd.c')
-rw-r--r-- | src/openocd.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/openocd.c b/src/openocd.c index 026a32b3..87eac706 100644 --- a/src/openocd.c +++ b/src/openocd.c @@ -69,7 +69,7 @@ static void print_version(void) /* Give TELNET a way to find out what version this is */ static int handle_version_command(struct command_context_s *cmd_ctx, char *cmd, char **args, int argc) { - if (argc!=0) + if (argc != 0) return ERROR_COMMAND_SYNTAX_ERROR; command_print(cmd_ctx, OPENOCD_VERSION); @@ -112,7 +112,7 @@ int ioutil_init(struct command_context_s *cmd_ctx); static int handle_init_command(struct command_context_s *cmd_ctx, char *cmd, char **args, int argc) { - if (argc!=0) + if (argc != 0) return ERROR_COMMAND_SYNTAX_ERROR; int retval; @@ -268,14 +268,14 @@ int openocd_main(int argc, char *argv[]) return EXIT_FAILURE; #if BUILD_HTTPD - if (httpd_start()!=ERROR_OK) + if (httpd_start() != ERROR_OK) return EXIT_FAILURE; #endif if (ret != ERROR_COMMAND_CLOSE_CONNECTION) { command_context_mode(cmd_ctx, COMMAND_EXEC); - if (command_run_line(cmd_ctx, "init")!=ERROR_OK) + if (command_run_line(cmd_ctx, "init") != ERROR_OK) return EXIT_FAILURE; /* handle network connections */ |