From e49d260ba7074f18bad86e38bc19e207e13e2387 Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Fri, 1 Mar 2013 11:59:57 +0100 Subject: memory_display: Change address pointer to type const void * No need to force a width of the pointer, so use void *. Also it's not modified in memory_display, so also add a const. Signed-off-by: Sascha Hauer --- common/memory_display.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common/memory_display.c') 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; -- cgit v1.2.3