diff options
author | Stefan Reinauer <reinauer@chromium.org> | 2013-03-25 15:15:16 -0700 |
---|---|---|
committer | Stefan Reinauer <stefan.reinauer@coreboot.org> | 2013-03-26 19:13:46 +0100 |
commit | a6c495edcaaade187280262db1bbce887fa28003 (patch) | |
tree | 50e61b2a5f60f2f8e193895567a3169261168f00 /payloads/libpayload/curses/PDCurses-3.4/pdcurses/termattr.c | |
parent | 8d225f141d45e3eba5bb39973e4889e884d9a64f (diff) |
libpayload: Fix const warnings in keyname() and termname()
The keyname() and termname() functions were creating a whole lot of warnings of
the style
curses/PDCurses-3.4/pdcurses/keyname.c:41:9: warning: initialization discards 'const' qualifier from pointer target type [enabled by default]
This patch fixes them.
Change-Id: Iae3c4e5201b48c2d2033cac48577e0462a34f309
Signed-off-by: Stefan Reinauer <reinauer@google.com>
Reviewed-on: http://review.coreboot.org/2905
Tested-by: build bot (Jenkins)
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Diffstat (limited to 'payloads/libpayload/curses/PDCurses-3.4/pdcurses/termattr.c')
-rw-r--r-- | payloads/libpayload/curses/PDCurses-3.4/pdcurses/termattr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/payloads/libpayload/curses/PDCurses-3.4/pdcurses/termattr.c b/payloads/libpayload/curses/PDCurses-3.4/pdcurses/termattr.c index f25ee95e03..7e49047b7f 100644 --- a/payloads/libpayload/curses/PDCurses-3.4/pdcurses/termattr.c +++ b/payloads/libpayload/curses/PDCurses-3.4/pdcurses/termattr.c @@ -135,7 +135,7 @@ attr_t term_attrs(void) WA_RIGHT | WA_UNDERLINE; } -char *termname(void) +const char *termname(void) { PDC_LOG(("termname() - called\n")); |