summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sprintf.c2
-rw-r--r--vsnprintf.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/sprintf.c b/sprintf.c
index afe27c2..705d3ce 100644
--- a/sprintf.c
+++ b/sprintf.c
@@ -1325,7 +1325,7 @@ ruby__sfvwrite(register rb_printf_buffer *fp, register struct __suio *uio)
return 0;
}
-static char *
+static const char *
ruby__sfvextra(rb_printf_buffer *fp, size_t valsize, void *valp, long *sz, int sign)
{
VALUE value, result = (VALUE)fp->_bf._base;
diff --git a/vsnprintf.c b/vsnprintf.c
index 49431d1..21ba8b0 100644
--- a/vsnprintf.c
+++ b/vsnprintf.c
@@ -177,7 +177,7 @@ typedef struct __sFILE {
struct __sbuf _bf; /* the buffer (at least 1 byte, if !NULL) */
size_t _lbfsize; /* 0 or -_bf._size, for inline putc */
int (*vwrite)(/* struct __sFILE*, struct __suio * */);
- char *(*vextra)(/* struct __sFILE*, size_t, void*, long*, int */);
+ const char *(*vextra)(/* struct __sFILE*, size_t, void*, long*, int */);
} FILE;