openocd: disabled main

As the openocd-executable won't be needed, the main-function just
prints a warning, which should never be seen in fail context.

Change-Id: I8e5bbd00f152f68058f946b68201c0917db9ec9a
This commit is contained in:
Lars Rademacher
2013-10-21 01:21:41 +02:00
parent 73c39f7787
commit 7e3cabf197

View File

@ -23,6 +23,8 @@
#endif
#include "openocd.h"
#include <stdio.h>
/* This is the main entry for developer PC hosted OpenOCD.
*
* OpenOCD can also be used as a library that is linked with
@ -35,8 +37,10 @@
int main(int argc, char *argv[])
{
/* disable buffering otherwise piping to logs causes problems work */
setvbuf(stdout, NULL, _IONBF, 0);
setvbuf(stderr, NULL, _IONBF, 0);
return openocd_main(argc, argv);
// setvbuf(stdout, NULL, _IONBF, 0);
// setvbuf(stderr, NULL, _IONBF, 0);
//
// return openocd_main(argc, argv);
printf("PANIC: This should not be happening\n");
return 0;
}