Fix indent style. :)

This commit is contained in:
Ron Pedde 2004-12-29 06:21:08 +00:00
parent 58b7043acd
commit cfe3c7675a
1 changed files with 119 additions and 119 deletions

View File

@ -86,7 +86,7 @@ int gzip_compress(GZIP_STREAM *gz) {
if (gz->in == NULL) if (gz->in == NULL)
return -1; return -1;
out_size = (int)(1.05*gz->in_size) + 20; out_size = (int)(1.05*gz->in_size) + 40;
gz->out = malloc(out_size); gz->out = malloc(out_size);
if (gz->out == NULL) { if (gz->out == NULL) {
DPRINTF(E_INF,L_WS|L_DAAP,"out of memory for output buffer\n"); DPRINTF(E_INF,L_WS|L_DAAP,"out of memory for output buffer\n");
@ -105,7 +105,7 @@ int gzip_compress(GZIP_STREAM *gz) {
while ((status = deflate(&strm,Z_FINISH)) == Z_OK) while ((status = deflate(&strm,Z_FINISH)) == Z_OK)
; ;
if (status != Z_STREAM_END) { if (status != Z_STREAM_END) {
DPRINTF(E_LOG,L_WS|L_DAAP,"unable to compress data\n"); DPRINTF(E_LOG,L_WS|L_DAAP,"unable to compress data: %s (%d)\n",strm.msg,status);
gz->bytes_out = 0; gz->bytes_out = 0;
return -1; return -1;
} }