summaryrefslogtreecommitdiff
path: root/stream/stm_write.c
diff options
context:
space:
mode:
authorSebastian Rasmussen <sebras@hotmail.com>2008-03-08 18:21:14 +0100
committerSebastian Rasmussen <sebras@hotmail.com>2008-03-08 18:21:14 +0100
commit5653ed4d9e7d413192a8923d29eb05c752d0b1ac (patch)
tree54d88cfcf3852f404ff532c3084de6d1d4f858f9 /stream/stm_write.c
parente921e12bcfa3a343eac5e4b7ba3f2566f5eff49f (diff)
downloadmupdf-5653ed4d9e7d413192a8923d29eb05c752d0b1ac.tar.xz
Fixed almost all compiler warnings.
Diffstat (limited to 'stream/stm_write.c')
-rw-r--r--stream/stm_write.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/stream/stm_write.c b/stream/stm_write.c
index d4eb99af..f619da9c 100644
--- a/stream/stm_write.c
+++ b/stream/stm_write.c
@@ -222,7 +222,7 @@ int fz_write(fz_stream *stm, unsigned char *mem, int n)
int fz_printstr(fz_stream *stm, char *s)
{
- return fz_write(stm, s, strlen(s));
+ return fz_write(stm, (unsigned char *) s, strlen(s));
}
int fz_printobj(fz_stream *file, fz_obj *obj, int tight)
@@ -235,7 +235,7 @@ int fz_printobj(fz_stream *file, fz_obj *obj, int tight)
if (n < sizeof buf)
{
fz_sprintobj(buf, sizeof buf, obj, tight);
- return fz_write(file, buf, n);
+ return fz_write(file, (unsigned char *) buf, n);
}
else
{
@@ -243,7 +243,7 @@ int fz_printobj(fz_stream *file, fz_obj *obj, int tight)
if (!ptr)
return -1;
fz_sprintobj(ptr, n, obj, tight);
- n = fz_write(file, ptr, n);
+ n = fz_write(file, (unsigned char *) ptr, n);
fz_free(ptr);
return n;
}
@@ -261,7 +261,7 @@ int fz_print(fz_stream *stm, char *fmt, ...)
va_end(ap);
if (n < sizeof buf)
- return fz_write(stm, buf, n);
+ return fz_write(stm, (unsigned char *) buf, n);
p = fz_malloc(n);
if (!p)
@@ -271,7 +271,7 @@ int fz_print(fz_stream *stm, char *fmt, ...)
vsnprintf(p, n, fmt, ap);
va_end(ap);
- n = fz_write(stm, p, n);
+ n = fz_write(stm, (unsigned char *) p, n);
fz_free(p);