diff options
author | Edward O'Callaghan <eocallaghan@alterapraxis.com> | 2014-02-14 21:33:10 +1100 |
---|---|---|
committer | Patrick Georgi <patrick@georgi-clan.de> | 2014-02-15 18:35:59 +0100 |
commit | 2e7d13f0ac2cfd92d7a835dcba41a347023df1da (patch) | |
tree | 3c8221c76786947fa37e64a8bcf7ea4e94457631 | |
parent | db0ccdced6e5264a48ac2bb9827861486e2df534 (diff) |
SerialICE: Fix sio_putstring discarding 'const' qualifier.
In serialice.c the function 'serialice_mainboard()' passes the argument
'const char *' to the function 'sio_putstring()'. However it discards
'const' qualifier from pointer target type.
In file included from serialice.c:29:0:
serial.c:85:13: note: expected 'char *' but argument is of type 'const char *'
Change-Id: I144173d7d13098f0e5115a2ec92b4aa20fcec5bc
Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
Reviewed-on: http://review.coreboot.org/5223
Tested-by: build bot (Jenkins)
Reviewed-by: Patrick Georgi <patrick@georgi-clan.de>
-rw-r--r-- | SerialICE/serial.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/SerialICE/serial.c b/SerialICE/serial.c index eee7e49..b5b0778 100644 --- a/SerialICE/serial.c +++ b/SerialICE/serial.c @@ -82,7 +82,7 @@ static u8 sio_getc(void) /* SIO helpers */ -static void sio_putstring(char *string) +static void sio_putstring(const char *string) { /* Very simple, no %d, %x etc. */ while (*string) { |