提交 776568d4 编写于 作者: I Ishizaki Kou 提交者: 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: NKou Ishizaki <kou.ishizaki@toshiba.co.jp>
Signed-off-by: NPaul Mackerras <paulus@samba.org>
上级 f8eb77d6
......@@ -9,6 +9,6 @@ extern char *xmon_gets(char *, int);
extern void xmon_printf(const char *, ...);
extern void xmon_map_scc(void);
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_read_poll(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);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册