summaryrefslogtreecommitdiffstats
path: root/common/memory_display.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2013-03-01 11:59:57 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2013-07-22 12:16:26 +0200
commite49d260ba7074f18bad86e38bc19e207e13e2387 (patch)
treef7e0db4cf76f3e5bd2ba3d4bf22fa30612ffaa97 /common/memory_display.c
parentc6d4b14ad9e020519331a3ed636b22da20feded4 (diff)
downloadbarebox-e49d260ba7074f18bad86e38bc19e207e13e2387.tar.gz
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 <s.hauer@pengutronix.de>
Diffstat (limited to 'common/memory_display.c')
-rw-r--r--common/memory_display.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/memory_display.c b/common/memory_display.c
index eb188e1..7e4f4da 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;