summaryrefslogtreecommitdiff
path: root/avr/debug.c
diff options
context:
space:
mode:
authorLeo C2018-09-05 12:20:59 +0200
committerLeo C2018-09-05 12:20:59 +0200
commitb35fcb2f65a9c2dd17faae5b513eecca8032461b (patch)
tree09ef88059fb6eba7785a79e23b60194bddaf1952 /avr/debug.c
parent1633073f77aa4f9c90a8f1d7f317e4c4d7187921 (diff)
downloadz180-stamp-b35fcb2f65a9c2dd17faae5b513eecca8032461b.zip
mcd_mem.c: use cmd_error(), z80_bus_request_or_exit()
Diffstat (limited to 'avr/debug.c')
-rw-r--r--avr/debug.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/avr/debug.c b/avr/debug.c
index ea4aa21..89ef4b1 100644
--- a/avr/debug.c
+++ b/avr/debug.c
@@ -26,11 +26,9 @@
* Memory Display
* md addr {len}
*/
-command_ret_t do_dump_mem(cmd_tbl_t *cmdtp, uint_fast8_t flag, int argc, char * const argv[])
+command_ret_t do_dump_mem(cmd_tbl_t *cmdtp UNUSED, uint_fast8_t flag UNUSED, int argc, char * const argv[])
{
- int (*readwhat)(uint8_t *buf, uint32_t addr, uint8_t count);
-
- (void) cmdtp; (void) flag;
+ ERRNUM (*readwhat)(uint8_t *buf, uint32_t addr, uint8_t count);
if (argc < 2)
return CMD_RET_USAGE;