aboutsummaryrefslogtreecommitdiff
path: root/stdio-common
diff options
context:
space:
mode:
Diffstat (limited to 'stdio-common')
-rw-r--r--stdio-common/printf.h2
-rw-r--r--stdio-common/reg-modifier.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/stdio-common/printf.h b/stdio-common/printf.h
index a11af02274..af8cf34fcc 100644
--- a/stdio-common/printf.h
+++ b/stdio-common/printf.h
@@ -113,7 +113,7 @@ extern int register_printf_function (int __spec, printf_function __func,
it returns a positive value representing the bit set in the USER
field in 'struct printf_info'. */
-extern int register_printf_modifier (wchar_t *__str) __wur __THROW;
+extern int register_printf_modifier (__const wchar_t *__str) __wur __THROW;
/* Register variable argument handler for user type. The return value
diff --git a/stdio-common/reg-modifier.c b/stdio-common/reg-modifier.c
index 69bb2ef3d5..ea3bdada13 100644
--- a/stdio-common/reg-modifier.c
+++ b/stdio-common/reg-modifier.c
@@ -39,7 +39,7 @@ static int next_bit;
int
-__register_printf_modifier (wchar_t *str)
+__register_printf_modifier (const wchar_t *str)
{
if (str[0] == L'\0')
{
@@ -48,7 +48,7 @@ __register_printf_modifier (wchar_t *str)
return -1;
}
- wchar_t *wc = str;
+ const wchar_t *wc = str;
while (*wc != L'\0')
if (*wc < 0 || *wc > (wchar_t) UCHAR_MAX)
goto einval;