#include "debug.h"
#include "common.h"
-#include <stdlib.h> /* __malloc_margin */
-#include <string.h>
-#include <ctype.h>
#include <avr/eeprom.h>
#include "command.h"
* 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;