summaryrefslogtreecommitdiff
path: root/fitz
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2012-06-19 14:49:38 +0100
committerRobin Watts <robin.watts@artifex.com>2012-06-19 14:49:38 +0100
commitf18dc92eb8014b335afdb720a8f5bc9c3bd7ceb7 (patch)
tree273577c217277bf3be2d9e8ae4224c3d5a401c39 /fitz
parent6553b7d94d94c9adc1201c6cdf6532fe65b9e63d (diff)
downloadmupdf-f18dc92eb8014b335afdb720a8f5bc9c3bd7ceb7.tar.xz
Avoid lots of const warnings.
Add/Remove a few consts to pacify MSVC.
Diffstat (limited to 'fitz')
-rw-r--r--fitz/fitz-internal.h2
-rw-r--r--fitz/stm_buffer.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/fitz/fitz-internal.h b/fitz/fitz-internal.h
index 0f413893..82b1a141 100644
--- a/fitz/fitz-internal.h
+++ b/fitz/fitz-internal.h
@@ -434,7 +434,7 @@ void fz_write_buffer_pad(fz_context *ctx, fz_buffer *buf);
grow, but the caller must ensure that no more than 256 bytes are
added to the buffer per call.
*/
-void fz_buffer_printf(fz_context *ctx, fz_buffer *buffer, char *fmt, ...);
+void fz_buffer_printf(fz_context *ctx, fz_buffer *buffer, const char *fmt, ...);
struct fz_stream_s
{
diff --git a/fitz/stm_buffer.c b/fitz/stm_buffer.c
index 87528ccd..9c41213d 100644
--- a/fitz/stm_buffer.c
+++ b/fitz/stm_buffer.c
@@ -174,7 +174,7 @@ void fz_write_buffer_pad(fz_context *ctx, fz_buffer *buf)
}
void
-fz_buffer_printf(fz_context *ctx, fz_buffer *buffer, char *fmt, ...)
+fz_buffer_printf(fz_context *ctx, fz_buffer *buffer, const char *fmt, ...)
{
va_list args;
va_start(args, fmt);