From debafa10bcf2dd52392739a3aa6aff54f044fcd8 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Thu, 23 Apr 2009 01:14:33 +0000 Subject: * stdio-common/printf.h: Add missing const to register_printf_modifier. * stdio-common/reg-modifier.c: Likewise. 2009-04-22 Andrew Stubbs * sysdeps/sh/sh4/setjmp.S (__sigsetjmp): Adjust JB_SIZE when there is no FPU. --- stdio-common/reg-modifier.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'stdio-common/reg-modifier.c') 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; -- cgit v1.2.3