switch (event)
{
case TARGET_EVENT_GDB_START:
- target->display=0;
+ target->display = 0;
break;
case TARGET_EVENT_GDB_END:
- target->display=1;
+ target->display = 1;
break;
case TARGET_EVENT_HALTED:
if (target->display)
return ERROR_COMMAND_SYNTAX_ERROR;
int retval;
- static int initialized=0;
+ static int initialized = 0;
if (initialized)
return ERROR_OK;
- initialized=1;
+ initialized = 1;
atexit(exit_handler);
return ERROR_FAIL;
LOG_DEBUG("target init complete");
- if ((retval=jtag_interface_init(cmd_ctx)) != ERROR_OK)
+ if ((retval = jtag_interface_init(cmd_ctx)) != ERROR_OK)
{
/* we must be able to set up the jtag interface */
return retval;
}
LOG_DEBUG("log init complete");
- LOG_OUTPUT( OPENOCD_VERSION "\n" );
+ LOG_OUTPUT(OPENOCD_VERSION "\n" );
register_command(cmd_ctx, NULL, "init", handle_init_command,
COMMAND_ANY, "initializes target and servers - nop on subsequent invocations");
return EXIT_FAILURE;
ret = parse_config_file(cmd_ctx);
- if ( (ret != ERROR_OK) && (ret != ERROR_COMMAND_CLOSE_CONNECTION) )
+ if ((ret != ERROR_OK) && (ret != ERROR_COMMAND_CLOSE_CONNECTION) )
return EXIT_FAILURE;
#if BUILD_HTTPD