From 46781080347af4f207cec108dfc2f96da61dcbfa Mon Sep 17 00:00:00 2001 From: Antonio Borneo Date: Sat, 10 Apr 2010 17:06:16 +0800 Subject: [PATCH] PLD: review scope of functions Add "static" qualifier to private functions. Signed-off-by: Antonio Borneo --- src/pld/pld.c | 3 ++- src/pld/pld.h | 2 -- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/pld/pld.c b/src/pld/pld.c index 5ed7596c77..90067e34a6 100644 --- a/src/pld/pld.c +++ b/src/pld/pld.c @@ -206,7 +206,8 @@ static const struct command_registration pld_exec_command_handlers[] = { }, COMMAND_REGISTRATION_DONE }; -int pld_init(struct command_context *cmd_ctx) + +static int pld_init(struct command_context *cmd_ctx) { if (!pld_devices) return ERROR_OK; diff --git a/src/pld/pld.h b/src/pld/pld.h index cd92ff0a4d..d306246b70 100644 --- a/src/pld/pld.h +++ b/src/pld/pld.h @@ -46,8 +46,6 @@ struct pld_device int pld_register_commands(struct command_context *cmd_ctx); -int pld_init(struct command_context *cmd_ctx); - struct pld_device *get_pld_device_by_num(int num); #define ERROR_PLD_DEVICE_INVALID (-1000) -- 2.30.2