Browse Source

openocd.c: whitespace cleanup

Change-Id: Ieb8c1e4eb72f66a6343b169a12a058555d67069e
Signed-off-by: Spencer Oliver <spen@spen-soft.co.uk>
Reviewed-on: http://openocd.zylin.com/242
Tested-by: jenkins
tags/v0.6.0-rc1
Spencer Oliver 10 years ago
parent
commit
5165afc005
1 changed files with 3 additions and 4 deletions
  1. +3
    -4
      src/openocd.c

+ 3
- 4
src/openocd.c View File

@@ -47,7 +47,6 @@
#include <strings.h>
#endif


#define OPENOCD_VERSION \
"Open On-Chip Debugger " VERSION RELSTR " (" PKGBLDDATE ")"

@@ -62,15 +61,15 @@ static int jim_version_command(Jim_Interp *interp, int argc,
const char *str = "";
char * version_str;
version_str = OPENOCD_VERSION;
if (argc == 2)
str = Jim_GetString(argv[1], NULL);

if (strcmp("git", str) == 0)
{
version_str = GITVERSION;
}
}
Jim_SetResult(interp, Jim_NewStringObj(interp, version_str, -1));

return JIM_OK;


Loading…
Cancel
Save