From f370d70670bd5e30befe6fbfbc8d472e760f032b Mon Sep 17 00:00:00 2001 From: oharboe Date: Tue, 5 Aug 2008 12:27:18 +0000 Subject: Duane Ellis: fix warnings git-svn-id: svn://svn.berlios.de/openocd/trunk@890 b42882b7-edfa-0310-969c-e2dbd0fdcd60 --- src/helper/command.h | 2 +- src/helper/log.h | 4 ++-- src/helper/time_support.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/helper') diff --git a/src/helper/command.h b/src/helper/command.h index d784af76..097a8d37 100644 --- a/src/helper/command.h +++ b/src/helper/command.h @@ -71,7 +71,7 @@ extern int unregister_all_commands(command_context_t *context); extern void command_set_output_handler(command_context_t* context, int (*output_handler)(struct command_context_s *context, const char* line), void *priv); extern command_context_t* copy_command_context(command_context_t* context); extern int command_context_mode(command_context_t *context, enum command_mode mode); -extern command_context_t* command_init(); +extern command_context_t* command_init(void); extern int command_done(command_context_t *context); extern void command_print(command_context_t *context, char *format, ...); extern void command_print_sameline(command_context_t *context, char *format, ...); diff --git a/src/helper/log.h b/src/helper/log.h index f57ed080..c329fb58 100644 --- a/src/helper/log.h +++ b/src/helper/log.h @@ -59,8 +59,8 @@ __attribute__ ((format (printf, 5, 6))); extern int log_register_commands(struct command_context_s *cmd_ctx); extern int log_init(struct command_context_s *cmd_ctx); extern int set_log_output(struct command_context_s *cmd_ctx, FILE *output); -extern void keep_alive(); -extern void kept_alive(); +extern void keep_alive(void); +extern void kept_alive(void); typedef void (*log_callback_fn)(void *priv, const char *file, int line, const char *function, const char *string); diff --git a/src/helper/time_support.h b/src/helper/time_support.h index 49c41c9d..0407a1c3 100644 --- a/src/helper/time_support.h +++ b/src/helper/time_support.h @@ -38,7 +38,7 @@ extern int timeval_subtract(struct timeval *result, struct timeval *x, struct ti extern int timeval_add(struct timeval *result, struct timeval *x, struct timeval *y); extern int timeval_add_time(struct timeval *result, int sec, int usec); /* gettimeofday() timeval in 64 bit ms */ -extern long long timeval_ms(); +extern long long timeval_ms(void); typedef struct duration_s { -- cgit v1.2.3