forked from auracaster/openocd
target: declare local symbols as static
Functions and variables that are not used outside the file should be declared as static. Change-Id: I9f97571a528f0cb3c3c26f873577ab16fdec3cdc Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com> Reviewed-on: http://openocd.zylin.com/5895 Tested-by: jenkins Reviewed-by: Tomas Vanek <vanekt@fbl.cz>
This commit is contained in:
@@ -43,7 +43,7 @@
|
||||
#include "lakemont.h"
|
||||
#include "x86_32_common.h"
|
||||
|
||||
int quark_d20xx_target_create(struct target *t, Jim_Interp *interp)
|
||||
static int quark_d20xx_target_create(struct target *t, Jim_Interp *interp)
|
||||
{
|
||||
struct x86_32_common *x86_32 = calloc(1, sizeof(struct x86_32_common));
|
||||
if (x86_32 == NULL) {
|
||||
@@ -56,7 +56,7 @@ int quark_d20xx_target_create(struct target *t, Jim_Interp *interp)
|
||||
return ERROR_OK;
|
||||
}
|
||||
|
||||
int quark_d20xx_init_target(struct command_context *cmd_ctx, struct target *t)
|
||||
static int quark_d20xx_init_target(struct command_context *cmd_ctx, struct target *t)
|
||||
{
|
||||
return lakemont_init_target(cmd_ctx, t);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user