diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2013-03-01 11:59:57 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2013-07-22 12:16:26 +0200 |
commit | e49d260ba7074f18bad86e38bc19e207e13e2387 (patch) | |
tree | f7e0db4cf76f3e5bd2ba3d4bf22fa30612ffaa97 /include/common.h | |
parent | c6d4b14ad9e020519331a3ed636b22da20feded4 (diff) | |
download | barebox-e49d260ba7074f18bad86e38bc19e207e13e2387.tar.gz barebox-e49d260ba7074f18bad86e38bc19e207e13e2387.tar.xz |
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 'include/common.h')
-rw-r--r-- | include/common.h | 2 |
1 files changed, 1 insertions, 1 deletions
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); |