diff options
author | Antonio Borneo <borneo.antonio@gmail.com> | 2010-04-10 17:06:16 +0800 |
---|---|---|
committer | Antonio Borneo <borneo.antonio@gmail.com> | 2010-04-10 17:06:16 +0800 |
commit | 46781080347af4f207cec108dfc2f96da61dcbfa (patch) | |
tree | 80126f85a4d87219bdd70e719576910a45d8796b /src/pld | |
parent | ec1c90e3cd53446939b4655f55166bff6b3d39f4 (diff) | |
download | openocd_libswd-46781080347af4f207cec108dfc2f96da61dcbfa.tar.gz openocd_libswd-46781080347af4f207cec108dfc2f96da61dcbfa.tar.bz2 openocd_libswd-46781080347af4f207cec108dfc2f96da61dcbfa.tar.xz openocd_libswd-46781080347af4f207cec108dfc2f96da61dcbfa.zip |
PLD: review scope of functions
Add "static" qualifier to private functions.
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Diffstat (limited to 'src/pld')
-rw-r--r-- | src/pld/pld.c | 3 | ||||
-rw-r--r-- | 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 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) |