Diff for /embedaddon/rsync/zlib/compress.c between versions 1.1.1.1 and 1.1.1.2

version 1.1.1.1, 2012/02/17 15:09:30 version 1.1.1.2, 2013/10/14 07:51:14
Line 1 Line 1
 /* compress.c -- compress a memory buffer  /* compress.c -- compress a memory buffer
 * Copyright (C) 1995-2003 Jean-loup Gailly. * Copyright (C) 1995-2005 Jean-loup Gailly.
  * For conditions of distribution and use, see copyright notice in zlib.h   * For conditions of distribution and use, see copyright notice in zlib.h
  */   */
   
Line 29  int ZEXPORT compress2 (dest, destLen, source, sourceLe Line 29  int ZEXPORT compress2 (dest, destLen, source, sourceLe
     z_stream stream;      z_stream stream;
     int err;      int err;
   
    stream.next_in = (Bytef*)source;    stream.next_in = (z_const Bytef *)source;
     stream.avail_in = (uInt)sourceLen;      stream.avail_in = (uInt)sourceLen;
 #ifdef MAXSEG_64K  #ifdef MAXSEG_64K
     /* Check for source > 64K on 16-bit machine: */      /* Check for source > 64K on 16-bit machine: */
Line 75  int ZEXPORT compress (dest, destLen, source, sourceLen Line 75  int ZEXPORT compress (dest, destLen, source, sourceLen
 uLong ZEXPORT compressBound (sourceLen)  uLong ZEXPORT compressBound (sourceLen)
     uLong sourceLen;      uLong sourceLen;
 {  {
    return sourceLen + (sourceLen >> 12) + (sourceLen >> 14) + 11;    return sourceLen + (sourceLen >> 12) + (sourceLen >> 14) +
            (sourceLen >> 25) + 13;
 }  }

Removed from v.1.1.1.1  
changed lines
  Added in v.1.1.1.2


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>