diff options
author | Yaakov Selkowitz <yselkowi@redhat.com> | 2017-12-04 05:25:16 +0300 |
---|---|---|
committer | Yaakov Selkowitz <yselkowi@redhat.com> | 2018-01-17 20:47:08 +0300 |
commit | 0bda30e1ffd23488aa4a9b73f228089463fbee1a (patch) | |
tree | b0efb851be762c4d530cc259070005318702321d /newlib/libc/misc | |
parent | 6783860a2e4e4183c073f62e4bb938cea0e096c3 (diff) |
ansification: remove _CONST
Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
Diffstat (limited to 'newlib/libc/misc')
-rw-r--r-- | newlib/libc/misc/__dprintf.c | 4 | ||||
-rw-r--r-- | newlib/libc/misc/unctrl.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/newlib/libc/misc/__dprintf.c b/newlib/libc/misc/__dprintf.c index 6026d195c..5fa30e0ab 100644 --- a/newlib/libc/misc/__dprintf.c +++ b/newlib/libc/misc/__dprintf.c @@ -23,7 +23,7 @@ static char *parse_number (); static long _EXFUN(get_number, (char *, long, int)); static void _EXFUN(print_number, (int, int, long)); static void _EXFUN(write_char, (char c)); -static void _EXFUN(write_string, (_CONST char *s)); +static void _EXFUN(write_string, (const char *s)); /* Non-zero for big-endian systems. */ static int big_endian_p; @@ -266,7 +266,7 @@ _DEFUN(write_char, (c), static void _DEFUN(write_string, (s), - _CONST char *s) + const char *s) { _write_r (_REENT, CONSOLE_FD, s, strlen (s)); } diff --git a/newlib/libc/misc/unctrl.c b/newlib/libc/misc/unctrl.c index e2cdb3861..8bca2a2a5 100644 --- a/newlib/libc/misc/unctrl.c +++ b/newlib/libc/misc/unctrl.c @@ -69,7 +69,7 @@ No supporting OS subroutines are required. static char sccsid[] = "@(#)unctrl.c 8.1 (Berkeley) 6/4/93"; #endif /* LIBC_SCCS and not lint */ -_CONST char * _CONST __unctrl[256] = { +const char * const __unctrl[256] = { "^@", "^A", "^B", "^C", "^D", "^E", "^F", "^G", "^H", "^I", "^J", "^K", "^L", "^M", "^N", "^O", "^P", "^Q", "^R", "^S", "^T", "^U", "^V", "^W", @@ -105,7 +105,7 @@ _CONST char * _CONST __unctrl[256] = { "0xf8", "0xf9", "0xfa", "0xfb", "0xfc", "0xfd", "0xfe", "0xff", }; -_CONST char __unctrllen[256] = { +const char __unctrllen[256] = { 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, |