This is an automated email from Gerrit.

Antonio Borneo ([email protected]) just uploaded a new patch set to 
Gerrit, which you can find at http://openocd.zylin.com/5897

-- gerrit

commit 8d595585a340caa6d4e66b71507123b4106aae75
Author: Antonio Borneo <[email protected]>
Date:   Thu Oct 29 00:49:06 2020 +0100

    openocd: 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 <[email protected]>

diff --git a/src/openocd.c b/src/openocd.c
index 8862284..d91b85e 100644
--- a/src/openocd.c
+++ b/src/openocd.c
@@ -233,7 +233,7 @@ struct command_context *global_cmd_ctx;
 /* NB! this fn can be invoked outside this file for non PC hosted builds
  * NB! do not change to 'static'!!!!
  */
-struct command_context *setup_command_handler(Jim_Interp *interp)
+static struct command_context *setup_command_handler(Jim_Interp *interp)
 {
        log_init();
        LOG_DEBUG("log_init: complete");
diff --git a/src/server/server.c b/src/server/server.c
index 3b55d0d..e53f37d 100644
--- a/src/server/server.c
+++ b/src/server/server.c
@@ -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) {

-- 


_______________________________________________
OpenOCD-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openocd-devel

Reply via email to