--- pgp/src/zipup.c 2018/04/24 16:38:45 1.1.1.2 +++ pgp/src/zipup.c 2018/04/24 16:43:45 1.1.1.6 @@ -14,6 +14,9 @@ #define NOCPYRT /* this is not a main module */ #include +#ifdef __QNX__ +#include +#endif #include "zip.h" #include "zrevisio.h" @@ -36,11 +39,8 @@ # include # define fhow (O_RDONLY|O_BINARY) # else /* !MSDOS */ -#ifndef AMIGA - int open OF((char *, int)); - int read OF((int, char *, int)); - int close OF((int)); - long lseek OF((int, long, int)); +#if !(defined(AMIGA) || defined(__NetBSD__)) + long lseek(); #endif /* AMIGA */ # define fhow 0 # endif /* ?MSDOS */ @@ -58,15 +58,18 @@ local ftype ifile; /* file to compress */ +void lm_free(); +void ct_free(); -int zipup(FILE *inFile, FILE *y) /* Compress the file fileName and write it to the file *y. Return an error - code in the ZE_ class. Also, update tempzn by the number of bytes written. */ + code in the ZE_ class. Also, update tempzn by the number of bytes written. +*/ +int zipup(FILE *inFile, FILE *y) /* ??? Does not yet handle non-seekable y */ { int m; /* method for this entry */ long q = -1L; /* size returned by filetime */ - ush att; /* internal file attributes (dummy only) */ + ush att; /* internal file attributes (dummy only) */ ush flg; /* gp compresion flags (dummy only) */ /* Set input file and find its size */ @@ -90,6 +93,8 @@ int zipup(FILE *inFile, FILE *y) lm_init(level, &flg); /* s = */ deflate(); } + lm_free(); + ct_free(); return(0); }