mirror of
https://github.com/linux-msm/openocd.git
synced 2026-02-25 13:15:07 -08:00
Duane Ellis: fix warnings
git-svn-id: svn://svn.berlios.de/openocd/trunk@890 b42882b7-edfa-0310-969c-e2dbd0fdcd60
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user