| 6 |
details. |
details. |
| 7 |
|
|
| 8 |
Buffer compression (interface to zlib) |
Buffer compression (interface to zlib) |
| 9 |
$Id: compress.c,v 1.1 2001/10/31 08:19:53 rabbi Exp $ */ |
$Id: compress.c,v 1.2 2002/09/18 23:26:16 rabbi Exp $ */ |
| 10 |
|
|
| 11 |
|
|
| 12 |
#include "mix3.h" |
#include "mix3.h" |
| 139 |
return (err); |
return (err); |
| 140 |
} |
} |
| 141 |
|
|
| 142 |
#else |
#else /* end of USE_ZLIB */ |
| 143 |
int buf_zip(BUFFER *out, BUFFER *in, int bits) |
int buf_zip(BUFFER *out, BUFFER *in, int bits) |
| 144 |
{ |
{ |
| 145 |
return (-1); |
return (-1); |
| 150 |
errlog(ERRORMSG, "Can't uncompress: no zlib\n"); |
errlog(ERRORMSG, "Can't uncompress: no zlib\n"); |
| 151 |
return (-1); |
return (-1); |
| 152 |
} |
} |
| 153 |
#endif |
#endif /* else not USE_ZLIB */ |
| 154 |
|
|
| 155 |
int compressed(BUFFER *b) |
int compressed(BUFFER *b) |
| 156 |
{ |
{ |