Commit 776568d4 authored by Ishizaki Kou's avatar Ishizaki Kou Committed by Paul Mackerras

[POWERPC] Make xmon_write accept a const buffer

Because xmon_write doesn't change the buffer, we should add 'const'
qualifier to the argument which points it.
Signed-off-by: default avatarKou Ishizaki <kou.ishizaki@toshiba.co.jp>
Signed-off-by: default avatarPaul Mackerras <paulus@samba.org>
parent f8eb77d6
...@@ -9,6 +9,6 @@ extern char *xmon_gets(char *, int); ...@@ -9,6 +9,6 @@ extern char *xmon_gets(char *, int);
extern void xmon_printf(const char *, ...); extern void xmon_printf(const char *, ...);
extern void xmon_map_scc(void); extern void xmon_map_scc(void);
extern int xmon_expect(const char *str, unsigned long timeout); extern int xmon_expect(const char *str, unsigned long timeout);
extern int xmon_write(void *ptr, int nb); extern int xmon_write(const void *ptr, int nb);
extern int xmon_readchar(void); extern int xmon_readchar(void);
extern int xmon_read_poll(void); extern int xmon_read_poll(void);
...@@ -14,7 +14,7 @@ void xmon_map_scc(void) ...@@ -14,7 +14,7 @@ void xmon_map_scc(void)
{ {
} }
int xmon_write(void *ptr, int nb) int xmon_write(const void *ptr, int nb)
{ {
return udbg_write(ptr, nb); return udbg_write(ptr, nb);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment