summaryrefslogtreecommitdiff
path: root/src/helper
diff options
context:
space:
mode:
authoroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-08-05 12:27:18 +0000
committeroharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60>2008-08-05 12:27:18 +0000
commitf370d70670bd5e30befe6fbfbc8d472e760f032b (patch)
tree881165e968757d8feae4e747b9407d98c328d373 /src/helper
parent20f505f695df9d9ba4c20780848336afec240a31 (diff)
downloadopenocd+libswd-f370d70670bd5e30befe6fbfbc8d472e760f032b.tar.gz
openocd+libswd-f370d70670bd5e30befe6fbfbc8d472e760f032b.tar.bz2
openocd+libswd-f370d70670bd5e30befe6fbfbc8d472e760f032b.tar.xz
openocd+libswd-f370d70670bd5e30befe6fbfbc8d472e760f032b.zip
Duane Ellis: fix warnings
git-svn-id: svn://svn.berlios.de/openocd/trunk@890 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src/helper')
-rw-r--r--src/helper/command.h2
-rw-r--r--src/helper/log.h4
-rw-r--r--src/helper/time_support.h2
3 files changed, 4 insertions, 4 deletions
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
{