diff options
author | Antonio Borneo <borneo.antonio@gmail.com> | 2019-05-07 00:26:46 +0200 |
---|---|---|
committer | Antonio Borneo <borneo.antonio@gmail.com> | 2020-07-08 22:08:19 +0100 |
commit | 996ff5bcfc402227ac2f28601e931f30b62e393f (patch) | |
tree | 23d1ef7fbd9839684c8942a20691cb1dd251ed6e /src/server/server.h | |
parent | e2315ccffd31757785130c3bf549a87d9be1689a (diff) | |
download | riscv-openocd-996ff5bcfc402227ac2f28601e931f30b62e393f.zip riscv-openocd-996ff5bcfc402227ac2f28601e931f30b62e393f.tar.gz riscv-openocd-996ff5bcfc402227ac2f28601e931f30b62e393f.tar.bz2 |
coding style: add arguments to function prototypes
Issue identified by checkpatch script from Linux kernel v5.1 using
the command
find src/ -type f -exec ./tools/scripts/checkpatch.pl \
-q --types FUNCTION_ARGUMENTS -f {} \;
This patch also fixes an incorrect function prototype in zy1000.c.
ZY1000 minidriver implementation overrides the function
arm11_run_instr_data_to_core_noack_inner(), but the prototype is
not the same as in src/target/arm11_dbgtap.c and to avoid compile
error it was changed also the prototype of the called function
arm11_run_instr_data_to_core_noack_inner_default().
Change-Id: I476cda8cdb0e1e280795b3b43ca95c40d09e4a3d
Signed-off-by: Antonio Borneo <borneo.antonio@gmail.com>
Reviewed-on: http://openocd.zylin.com/5630
Tested-by: jenkins
Reviewed-by: Andreas Fritiofson <andreas.fritiofson@gmail.com>
Diffstat (limited to 'src/server/server.h')
-rw-r--r-- | src/server/server.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/server.h b/src/server/server.h index f4cc39d..ff2ada9 100644 --- a/src/server/server.h +++ b/src/server/server.h @@ -87,7 +87,7 @@ int server_preinit(void); int server_init(struct command_context *cmd_ctx); int server_quit(void); void server_free(void); -void exit_on_signal(int); +void exit_on_signal(int sig); int server_loop(struct command_context *command_context); |