summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--common/memory_display.c2
-rw-r--r--include/common.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/common/memory_display.c b/common/memory_display.c
index eb188e1d79..7e4f4da622 100644
--- a/common/memory_display.c
+++ b/common/memory_display.c
@@ -2,7 +2,7 @@
#define DISP_LINE_LEN 16
-int memory_display(char *addr, loff_t offs, unsigned nbytes, int size, int swab)
+int memory_display(const void *addr, loff_t offs, unsigned nbytes, int size, int swab)
{
ulong linebytes, i;
u_char *cp;
diff --git a/include/common.h b/include/common.h
index 744b19ea7b..e813726529 100644
--- a/include/common.h
+++ b/include/common.h
@@ -220,7 +220,7 @@ int run_shell(void);
#define PAGE_ALIGN(s) (((s) + PAGE_SIZE - 1) & ~(PAGE_SIZE - 1))
#define PAGE_ALIGN_DOWN(x) ((x) & ~(PAGE_SIZE - 1))
-int memory_display(char *addr, loff_t offs, unsigned nbytes, int size, int swab);
+int memory_display(const void *addr, loff_t offs, unsigned nbytes, int size, int swab);
int mem_parse_options(int argc, char *argv[], char *optstr, int *mode,
char **sourcefile, char **destfile, int *swab);