diff options
author | Tor Andersson <tor@ghostscript.com> | 2004-10-07 04:15:51 +0200 |
---|---|---|
committer | Tor Andersson <tor@ghostscript.com> | 2004-10-07 04:15:51 +0200 |
commit | 94a96e0ce2be0e32f59ea43f1166a884ca30222d (patch) | |
tree | 05d123cd5ea355a015978758eb3d83a4ab779b4b /filter/filew.c | |
parent | 59bd2f5bfc486b107c4bd689bd65ea7d23e2fad0 (diff) | |
download | mupdf-94a96e0ce2be0e32f59ea43f1166a884ca30222d.tar.xz |
openfile append mode. changed O_*ONLY to FZ_* enums.
Diffstat (limited to 'filter/filew.c')
-rw-r--r-- | filter/filew.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/filter/filew.c b/filter/filew.c index fdf94043..53e3c120 100644 --- a/filter/filew.c +++ b/filter/filew.c @@ -81,7 +81,7 @@ fz_write(fz_file *f, char *buf, int n) int i = 0; int x; - assert(f->mode == O_WRONLY); + assert(f->mode == FZ_WRITE); assert(f->error == nil); if (!f->filter) @@ -177,7 +177,7 @@ fz_flush(fz_file *f) fz_error *reason; int n; - assert(f->mode == O_WRONLY); + assert(f->mode == FZ_WRITE); assert(f->error == nil); f->in->eof = 1; |