server: review scope of functions and data

Add "static" qualifier to private functions and data.

Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
__archive__
Antonio Borneo 2010-03-24 12:06:45 +08:00 committed by Øyvind Harboe
parent 721502f1d3
commit 9f1d9499ce
1 changed files with 4 additions and 4 deletions

View File

@ -40,7 +40,7 @@
#endif #endif
struct service *services = NULL; static struct service *services = NULL;
/* shutdown_openocd == 1: exit the main event loop, and quit the debugger */ /* shutdown_openocd == 1: exit the main event loop, and quit the debugger */
static int shutdown_openocd = 0; static int shutdown_openocd = 0;
@ -48,7 +48,7 @@ static int shutdown_openocd = 0;
/* set when using pipes rather than tcp */ /* set when using pipes rather than tcp */
int server_use_pipes = 0; 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; socklen_t address_size;
struct connection *c, **p; struct connection *c, **p;
@ -112,7 +112,7 @@ int add_connection(struct service *service, struct command_context *cmd_ctx)
return ERROR_OK; 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 **p = &service->connections;
struct connection *c; struct connection *c;
@ -261,7 +261,7 @@ int remove_service(unsigned short port)
return ERROR_OK; return ERROR_OK;
} }
int remove_services(void) static int remove_services(void)
{ {
struct service *c = services; struct service *c = services;