diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1997-12-22 17:29:51 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1997-12-22 17:29:51 +0000 |
commit | 608641e6d22b41af782c567f9115cce6485738ba (patch) | |
tree | 9ee0a875475a2a8947c5dd466bfbd79387cd337e /c/src/lib/libbsp/m68k | |
parent | Now generating this file with autoconf to avoid having to embed so (diff) | |
download | rtems-608641e6d22b41af782c567f9115cce6485738ba.tar.bz2 |
Corrected prototypes for all termios console write driver entries to
properly reflect the const on the buffer pointer being passed in.
Diffstat (limited to 'c/src/lib/libbsp/m68k')
-rw-r--r-- | c/src/lib/libbsp/m68k/dmv152/console/console.c | 2 | ||||
-rw-r--r-- | c/src/lib/libbsp/m68k/gen68360/console/console.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/c/src/lib/libbsp/m68k/dmv152/console/console.c b/c/src/lib/libbsp/m68k/dmv152/console/console.c index e46576d3b2..13007fc606 100644 --- a/c/src/lib/libbsp/m68k/dmv152/console/console.c +++ b/c/src/lib/libbsp/m68k/dmv152/console/console.c @@ -118,7 +118,7 @@ void DEBUG_puts( * */ -int console_write_support (int minor, char *buf, int len) +int console_write_support (int minor, const char *buf, int len) { int nwrite = 0; diff --git a/c/src/lib/libbsp/m68k/gen68360/console/console.c b/c/src/lib/libbsp/m68k/gen68360/console/console.c index 2c2ce594e2..8f428faf43 100644 --- a/c/src/lib/libbsp/m68k/gen68360/console/console.c +++ b/c/src/lib/libbsp/m68k/gen68360/console/console.c @@ -183,10 +183,10 @@ smc1Read (int minor) * Transmit all characters. */ static int -smc1Write (int minor, char *buf, int len) +smc1Write (int minor, const char *buf, int len) { #if (defined (M360_SMC1_INTERRUPT)) - smcTxBd->buffer = buf; + smcTxBd->buffer = (char *)buf; smcTxBd->length = len; smcTxBd->status = M360_BD_READY | M360_BD_WRAP | M360_BD_INTERRUPT; #else |