mirror of
https://github.com/linux-msm/openocd.git
synced 2026-02-25 13:15:07 -08:00
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:
@@ -595,7 +595,7 @@ int server_loop(struct command_context *command_context)
|
||||
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 */
|
||||
if (shutdown_openocd == CONTINUE_MAIN_LOOP) {
|
||||
|
||||
Reference in New Issue
Block a user