server: declare local functions as static

Functions that are not used outside the file should be declared as
static.

Change-Id: I57b2fa6e49e87e14604bd34c4f1d2f037f401507
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: http://openocd.zylin.com/5897
Tested-by: jenkins
Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
This commit is contained in:
Antonio Borneo 2020-10-29 00:49:06 +01:00
parent 7beb6a4e5b
commit f3db7f173e
1 changed files with 1 additions and 1 deletions

View File

@ -595,7 +595,7 @@ int server_loop(struct command_context *command_context)
return shutdown_openocd == SHUTDOWN_WITH_ERROR_CODE ? ERROR_FAIL : ERROR_OK; return shutdown_openocd == SHUTDOWN_WITH_ERROR_CODE ? ERROR_FAIL : ERROR_OK;
} }
void sig_handler(int sig) static void sig_handler(int sig)
{ {
/* store only first signal that hits us */ /* store only first signal that hits us */
if (shutdown_openocd == CONTINUE_MAIN_LOOP) { if (shutdown_openocd == CONTINUE_MAIN_LOOP) {