From 702e47f52693f7a3b7c3f483e6293b64519ed278 Mon Sep 17 00:00:00 2001 From: Erik Troan Date: Fri, 30 Nov 2001 01:56:50 +0000 Subject: compression works --- isys/gzlib/binding.c | 4 ++-- isys/gzlib/deflate.c | 4 ++-- isys/gzlib/gzlib.h | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'isys') diff --git a/isys/gzlib/binding.c b/isys/gzlib/binding.c index 0f779366d..f4d5bb73c 100644 --- a/isys/gzlib/binding.c +++ b/isys/gzlib/binding.c @@ -87,10 +87,10 @@ gzFile gzip_dopen(int fd) { } -gzFile gzip_open(const char * file, int flags) { +gzFile gzip_open(const char * file, int flags, int perms) { int fd; - fd = open(file, flags); + fd = open(file, flags, perms); if (fd < 0) return NULL; return gzip_dopen(fd); diff --git a/isys/gzlib/deflate.c b/isys/gzlib/deflate.c index 5a355928f..bd128206b 100644 --- a/isys/gzlib/deflate.c +++ b/isys/gzlib/deflate.c @@ -290,7 +290,7 @@ void lm_init (pack_level, flags) { register unsigned j; - if (pack_level < 1 || pack_level > 9) error("bad pack level"); + if (pack_level < 1 || pack_level > 9) warn("bad pack level"); compr_level = pack_level; /* Initialize the hash table. */ @@ -495,7 +495,7 @@ local void check_match(start, match, length) fprintf(stderr, " start %d, match %d, length %d\n", start, match, length); - error("invalid match"); + warn("invalid match"); } if (verbose > 1) { fprintf(stderr,"\\[%d,%d]", start-match, length); diff --git a/isys/gzlib/gzlib.h b/isys/gzlib/gzlib.h index 35255a401..8677737f8 100644 --- a/isys/gzlib/gzlib.h +++ b/isys/gzlib/gzlib.h @@ -5,7 +5,7 @@ typedef struct gzFile_s * gzFile; gzFile gunzip_open(const char * file); gzFile gunzip_dopen(int fd); -gzFile gzip_open(const char * file, int mode); +gzFile gzip_open(const char * file, int mode, int perms); gzFile gzip_dopen(int fd); int gunzip_read(gzFile str, void * buf, int bytes); int gzip_write(gzFile str, void * buf, int bytes); -- cgit