diff options
author | Antonio Borneo <borneo.antonio@gmail.com> | 2010-03-24 12:06:45 +0800 |
---|---|---|
committer | Øyvind Harboe <oyvind.harboe@zylin.com> | 2010-03-24 07:44:18 +0100 |
commit | 9f1d9499ce5d15f25c3d0f150348e16deb2e7aaf (patch) | |
tree | f7a6a1a6f6d8f2cd96907840e188d62f8944f3d1 | |
parent | 721502f1d3a0d506bc0e814926368fbedda60028 (diff) | |
download | openocd_libswd-9f1d9499ce5d15f25c3d0f150348e16deb2e7aaf.tar.gz openocd_libswd-9f1d9499ce5d15f25c3d0f150348e16deb2e7aaf.tar.bz2 openocd_libswd-9f1d9499ce5d15f25c3d0f150348e16deb2e7aaf.tar.xz openocd_libswd-9f1d9499ce5d15f25c3d0f150348e16deb2e7aaf.zip |
server: review scope of functions and data
Add "static" qualifier to private functions and data.
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
-rw-r--r-- | src/server/server.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/server/server.c b/src/server/server.c index 173beb86..1a6250ce 100644 --- a/src/server/server.c +++ b/src/server/server.c @@ -40,7 +40,7 @@ #endif -struct service *services = NULL; +static struct service *services = NULL; /* shutdown_openocd == 1: exit the main event loop, and quit the debugger */ static int shutdown_openocd = 0; @@ -48,7 +48,7 @@ static int shutdown_openocd = 0; /* set when using pipes rather than tcp */ int server_use_pipes = 0; -int add_connection(struct service *service, struct command_context *cmd_ctx) +static int add_connection(struct service *service, struct command_context *cmd_ctx) { socklen_t address_size; struct connection *c, **p; @@ -112,7 +112,7 @@ int add_connection(struct service *service, struct command_context *cmd_ctx) return ERROR_OK; } -int remove_connection(struct service *service, struct connection *connection) +static int remove_connection(struct service *service, struct connection *connection) { struct connection **p = &service->connections; struct connection *c; @@ -261,7 +261,7 @@ int remove_service(unsigned short port) return ERROR_OK; } -int remove_services(void) +static int remove_services(void) { struct service *c = services; |