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
This commit is contained in:
parent
d6a1ff8399
commit
5165afc005
|
@ -47,7 +47,6 @@
|
||||||
#include <strings.h>
|
#include <strings.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
#define OPENOCD_VERSION \
|
#define OPENOCD_VERSION \
|
||||||
"Open On-Chip Debugger " VERSION RELSTR " (" PKGBLDDATE ")"
|
"Open On-Chip Debugger " VERSION RELSTR " (" PKGBLDDATE ")"
|
||||||
|
|
||||||
|
@ -62,15 +61,15 @@ static int jim_version_command(Jim_Interp *interp, int argc,
|
||||||
const char *str = "";
|
const char *str = "";
|
||||||
char * version_str;
|
char * version_str;
|
||||||
version_str = OPENOCD_VERSION;
|
version_str = OPENOCD_VERSION;
|
||||||
|
|
||||||
if (argc == 2)
|
if (argc == 2)
|
||||||
str = Jim_GetString(argv[1], NULL);
|
str = Jim_GetString(argv[1], NULL);
|
||||||
|
|
||||||
if (strcmp("git", str) == 0)
|
if (strcmp("git", str) == 0)
|
||||||
{
|
{
|
||||||
version_str = GITVERSION;
|
version_str = GITVERSION;
|
||||||
}
|
}
|
||||||
|
|
||||||
Jim_SetResult(interp, Jim_NewStringObj(interp, version_str, -1));
|
Jim_SetResult(interp, Jim_NewStringObj(interp, version_str, -1));
|
||||||
|
|
||||||
return JIM_OK;
|
return JIM_OK;
|
||||||
|
|
Loading…
Reference in New Issue