diff options
author | Richard Braun <rbraun@sceen.net> | 2018-08-14 21:31:17 +0200 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2018-08-14 21:31:17 +0200 |
commit | de950994b2238c2568602dd2a7ac40e827e3d8c6 (patch) | |
tree | de7427774759f70c33fe173abd2ae87742cc6f6b /src | |
parent | 204c453656ccab85f1af0bb35e1da34997e8c1c6 (diff) |
Change the way unused arguments are handled
Use the __unused macro when declaring unused arguments in function
definitions. Use main(void) instead of main(argc, argv) where
appropriate.
Diffstat (limited to 'src')
-rw-r--r-- | src/shell.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/shell.c b/src/shell.c index 114d089..e99766e 100644 --- a/src/shell.c +++ b/src/shell.c @@ -523,11 +523,8 @@ shell_cb_help(struct shell *shell, int argc, char *argv[]) } static void -shell_cb_history(struct shell *shell, int argc, char *argv[]) +shell_cb_history(struct shell *shell, int argc __unused, char *argv[] __unused) { - (void)argc; - (void)argv; - shell_history_print(shell_get_history(shell), shell); } |