Show
Ignore:
Timestamp:
09/18/09 00:24:34 (9 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1253233474 +0000
git-parent:

[6f0b2ab04b6e742c4bac93acdc575612ceabcae1]

git-author:
Theo Schlossnagle <jesus@omniti.com> 1253233474 +0000
Message:

indentiation changes only, functional change

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/noit_http.c

    r6298e33 r216024f  
    809809  return len; 
    810810} 
    811 /* memgzip */ 
    812811static int memgzip2(Bytef *dest, uLongf *destLen, 
    813812                    const Bytef *source, uLong sourceLen, int level) { 
    814     z_stream stream; 
    815     int err; 
    816  
    817     memset(&stream, 0, sizeof(stream)); 
    818     stream.next_in = (Bytef*)source; 
    819     stream.avail_in = (uInt)sourceLen; 
    820     stream.next_out = dest; 
    821     stream.avail_out = (uInt)*destLen; 
    822     if ((uLong)stream.avail_out != *destLen) return Z_BUF_ERROR; 
    823  
    824     err = deflateInit2(&stream, level, Z_DEFLATED, 15+16, 8, 
    825                        Z_DEFAULT_STRATEGY); 
    826     if (err != Z_OK) return err; 
    827  
    828     err = deflate(&stream, Z_FINISH); 
    829     if (err != Z_STREAM_END) { 
    830         deflateEnd(&stream); 
    831         return err == Z_OK ? Z_BUF_ERROR : err; 
    832    
    833     *destLen = stream.total_out; 
    834  
    835     err = deflateEnd(&stream); 
    836     return err; 
     813  z_stream stream; 
     814  int err; 
     815 
     816  memset(&stream, 0, sizeof(stream)); 
     817  stream.next_in = (Bytef*)source; 
     818  stream.avail_in = (uInt)sourceLen; 
     819  stream.next_out = dest; 
     820  stream.avail_out = (uInt)*destLen; 
     821  if ((uLong)stream.avail_out != *destLen) return Z_BUF_ERROR; 
     822 
     823  err = deflateInit2(&stream, level, Z_DEFLATED, 15+16, 8, 
     824                     Z_DEFAULT_STRATEGY); 
     825  if (err != Z_OK) return err; 
     826 
     827  err = deflate(&stream, Z_FINISH); 
     828  if (err != Z_STREAM_END) { 
     829    deflateEnd(&stream); 
     830    return err == Z_OK ? Z_BUF_ERROR : err; 
     831 
     832  *destLen = stream.total_out; 
     833 
     834  err = deflateEnd(&stream); 
     835  return err; 
    837836} 
    838837static noit_boolean