diff options
author | zwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-04-30 09:49:38 +0000 |
---|---|---|
committer | zwelch <zwelch@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-04-30 09:49:38 +0000 |
commit | 8c1ec4f0e1a7dd37a2549d83b6cd5c8c57eb34aa (patch) | |
tree | 91bf73b2d31e02bb4e86d8532ec7f8d271507718 /src/target/target_request.c | |
parent | d70dac5e49b7f13c409dee728b3edc7341602ed4 (diff) |
Add static keywords to core target source file data and functions.
git-svn-id: svn://svn.berlios.de/openocd/trunk@1579 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/target/target_request.c')
-rw-r--r-- | src/target/target_request.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/target/target_request.c b/src/target/target_request.c index 1aa7d398..8d44a111 100644 --- a/src/target/target_request.c +++ b/src/target/target_request.c @@ -38,10 +38,10 @@ #include <stdlib.h> #include <string.h> -command_t *target_request_cmd = NULL; +static command_t *target_request_cmd = NULL; static int charmsg_mode = 0; -int target_asciimsg(target_t *target, u32 length) +static int target_asciimsg(target_t *target, u32 length) { char *msg = malloc(CEIL(length + 1, 4) * 4); debug_msg_receiver_t *c = target->dbgmsg; @@ -60,14 +60,14 @@ int target_asciimsg(target_t *target, u32 length) return ERROR_OK; } -int target_charmsg(target_t *target, u8 msg) +static int target_charmsg(target_t *target, u8 msg) { LOG_USER_N("%c", msg); return ERROR_OK; } -int target_hexmsg(target_t *target, int size, u32 length) +static int target_hexmsg(target_t *target, int size, u32 length) { u8 *data = malloc(CEIL(length * size, 4) * 4); char line[128]; @@ -154,7 +154,7 @@ int target_request(target_t *target, u32 request) return ERROR_OK; } -int add_debug_msg_receiver(struct command_context_s *cmd_ctx, target_t *target) +static int add_debug_msg_receiver(struct command_context_s *cmd_ctx, target_t *target) { debug_msg_receiver_t **p = &target->dbgmsg; @@ -182,7 +182,7 @@ int add_debug_msg_receiver(struct command_context_s *cmd_ctx, target_t *target) return ERROR_OK; } -debug_msg_receiver_t* find_debug_msg_receiver(struct command_context_s *cmd_ctx, target_t *target) +static debug_msg_receiver_t* find_debug_msg_receiver(struct command_context_s *cmd_ctx, target_t *target) { int do_all_targets = 0; debug_msg_receiver_t **p = &target->dbgmsg; @@ -261,7 +261,7 @@ int delete_debug_msg_receiver(struct command_context_s *cmd_ctx, target_t *targe return ERROR_OK; } -int handle_target_request_debugmsgs_command(struct command_context_s *cmd_ctx, char *cmd, char **args, int argc) +static int handle_target_request_debugmsgs_command(struct command_context_s *cmd_ctx, char *cmd, char **args, int argc) { target_t *target = get_current_target(cmd_ctx); |