PLD: review scope of functions
authorAntonio Borneo <borneo.antonio@gmail.com>
Sat, 10 Apr 2010 09:06:16 +0000 (17:06 +0800)
committerAntonio Borneo <borneo.antonio@gmail.com>
Sat, 10 Apr 2010 09:06:16 +0000 (17:06 +0800)
Add "static" qualifier to private functions.

Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
src/pld/pld.c
src/pld/pld.h

index 5ed7596c77335f5912b769495d781515465a3412..90067e34a6fc397f9a436a2e5370c5b6350b3ec2 100644 (file)
@@ -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;
index cd92ff0a4d86119294368427105a9cf8fc0d0c72..d306246b704451883e99de034e1d79c8affe8354 100644 (file)
@@ -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)