From: Antonio Borneo Date: Sat, 10 Apr 2010 09:06:16 +0000 (+0800) Subject: PLD: review scope of functions X-Git-Tag: v0.5.0-rc1~776 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=46781080347af4f207cec108dfc2f96da61dcbfa;p=openocd PLD: review scope of functions Add "static" qualifier to private functions. Signed-off-by: Antonio Borneo --- diff --git a/src/pld/pld.c b/src/pld/pld.c index 5ed7596c..90067e34 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 cd92ff0a..d306246b 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)