aboutsummaryrefslogtreecommitdiff
path: root/src/helper/log.c
diff options
context:
space:
mode:
authorAntonio Borneo <borneo.antonio@gmail.com>2019-05-06 12:31:57 +0200
committerAntonio Borneo <borneo.antonio@gmail.com>2020-05-09 14:39:59 +0100
commit3474aa223a712ac848a8a8e58633106477db0641 (patch)
tree79cec7b3cc4dd4a88cdbd36dfad2844b489ffe9c /src/helper/log.c
parent185834ef8aa663faf6761e5c3d7c4a049c88eeab (diff)
downloadriscv-openocd-3474aa223a712ac848a8a8e58633106477db0641.zip
riscv-openocd-3474aa223a712ac848a8a8e58633106477db0641.tar.gz
riscv-openocd-3474aa223a712ac848a8a8e58633106477db0641.tar.bz2
coding style: prototype of functions with no parameters
Functions that have no parameters should use "void" as parameter in the function declaration. Issue identified and fixed by script checkpatch from Linux kernel v5.1 using the command find src/ -type f -exec ./tools/scripts/checkpatch.pl \ -q --types FUNCTION_WITHOUT_ARGS --fix-inplace -f {} \; Change-Id: If104ac75b44e939ec86155ff7b5720f2e33c6b39 Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com> Reviewed-on: http://openocd.zylin.com/5621 Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com> Tested-by: jenkins
Diffstat (limited to 'src/helper/log.c')
-rw-r--r--src/helper/log.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/helper/log.c b/src/helper/log.c
index ae26df5..380f548 100644
--- a/src/helper/log.c
+++ b/src/helper/log.c
@@ -401,7 +401,7 @@ char *alloc_printf(const char *format, ...)
* fast when invoked more often than every 500ms.
*
*/
-void keep_alive()
+void keep_alive(void)
{
current_time = timeval_ms();
if (current_time-last_time > 1000) {
@@ -436,7 +436,7 @@ void keep_alive()
}
/* reset keep alive timer without sending message */
-void kept_alive()
+void kept_alive(void)
{
current_time = timeval_ms();
last_time = current_time;