mirror of
git://git.code.sf.net/p/openocd/code
synced 2025-07-20 01:36:35 +10:00
With the old checkpatch we cannot use the correct format for the SPDX tags in the file .c, in fact the C99 comments are not allowed and we had to use the block comment. With the new checkpatch, let's switch to the correct SPDX format. Change created automatically through the command: sed -i \ 's,^/\* *\(SPDX-License-Identifier: .*[^ ]\) *\*/$,// \1,' \ $(find src/ contrib/ -name \*.c) Change-Id: I6da16506baa7af718947562505dd49606d124171 Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com> Reviewed-on: https://review.openocd.org/c/openocd/+/7153 Tested-by: jenkins
31 lines
999 B
C
31 lines
999 B
C
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
/***************************************************************************
|
|
* Copyright (C) 2005 by Dominic Rath *
|
|
* Dominic.Rath@gmx.de *
|
|
***************************************************************************/
|
|
|
|
#ifdef HAVE_CONFIG_H
|
|
#include "config.h"
|
|
#endif
|
|
#include "openocd.h"
|
|
#include "helper/system.h"
|
|
|
|
/* This is the main entry for developer PC hosted OpenOCD.
|
|
*
|
|
* OpenOCD can also be used as a library that is linked with
|
|
* another application(not mainstream yet, but possible), e.g.
|
|
* w/as an embedded application.
|
|
*
|
|
* Those applications will have their own main() implementation
|
|
* and use bits and pieces from openocd.c. */
|
|
|
|
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);
|
|
}
|