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>
This commit is contained in:
parent
c6d4b14ad9
commit
e49d260ba7
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue