Skip to content

Commit

Permalink
[POWERPC] Make xmon_write accept a const buffer
Browse files Browse the repository at this point in the history
Because xmon_write doesn't change the buffer, we should add 'const'
qualifier to the argument which points it.

Signed-off-by: Kou Ishizaki <kou.ishizaki@toshiba.co.jp>
Signed-off-by: Paul Mackerras <paulus@samba.org>
  • Loading branch information
Ishizaki Kou authored and Paul Mackerras committed Jul 22, 2007
1 parent f8eb77d commit 776568d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion arch/powerpc/xmon/nonstdio.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
2 changes: 1 addition & 1 deletion arch/powerpc/xmon/start.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 776568d

Please sign in to comment.