diff options
Diffstat (limited to 'src/server')
-rw-r--r-- | src/server/gdb_server.c | 2 | ||||
-rw-r--r-- | src/server/gdb_server.h | 2 | ||||
-rw-r--r-- | src/server/server.c | 10 | ||||
-rw-r--r-- | src/server/server.h | 4 |
4 files changed, 9 insertions, 9 deletions
diff --git a/src/server/gdb_server.c b/src/server/gdb_server.c index 040c614f..62999538 100644 --- a/src/server/gdb_server.c +++ b/src/server/gdb_server.c @@ -2002,7 +2002,7 @@ int gdb_input(connection_t *connection) return ERROR_OK; } -int gdb_init() +int gdb_init(void) { gdb_service_t *gdb_service; target_t *target = targets; diff --git a/src/server/gdb_server.h b/src/server/gdb_server.h index e81ee694..943d9d97 100644 --- a/src/server/gdb_server.h +++ b/src/server/gdb_server.h @@ -46,7 +46,7 @@ typedef struct gdb_service_s struct target_s *target; } gdb_service_t; -extern int gdb_init(); +extern int gdb_init(void); extern int gdb_register_commands(command_context_t *command_context); #define ERROR_GDB_BUFFER_TOO_SMALL (-800) diff --git a/src/server/server.c b/src/server/server.c index 97762838..aad98747 100644 --- a/src/server/server.c +++ b/src/server/server.c @@ -222,7 +222,7 @@ int remove_service(unsigned short port) return ERROR_OK; } -int remove_services() +int remove_services(void) { service_t *c = services; @@ -249,8 +249,8 @@ int remove_services() return ERROR_OK; } -extern void openocd_sleep_prelude(); -extern void openocd_sleep_postlude(); +extern void openocd_sleep_prelude(void); +extern void openocd_sleep_postlude(void); int server_loop(command_context_t *command_context) { @@ -434,7 +434,7 @@ void sig_handler(int sig) { } #endif -int server_init() +int server_init(void) { #ifdef _WIN32 WORD wVersionRequested; @@ -460,7 +460,7 @@ int server_init() return ERROR_OK; } -int server_quit() +int server_quit(void) { remove_services(); diff --git a/src/server/server.h b/src/server/server.h index 95410e80..6f0ec3e3 100644 --- a/src/server/server.h +++ b/src/server/server.h @@ -68,8 +68,8 @@ typedef struct service_s } service_t; extern int add_service(char *name, enum connection_type type, unsigned short port, int max_connections, new_connection_handler_t new_connection_handler, input_handler_t input_handler, connection_closed_handler_t connection_closed_handler, void *priv); -extern int server_init(); -extern int server_quit(); +extern int server_init(void); +extern int server_quit(void); extern int server_loop(command_context_t *command_context); extern int server_register_commands(command_context_t *context); |