From: Andrew Tridgell Date: Wed, 3 Jul 1996 05:22:09 +0000 (+0000) Subject: *** empty log message *** X-Git-Tag: v1.6.4~44 X-Git-Url: http://git.samba.org/samba.git/?p=rsync.git;a=commitdiff_plain;h=ef21f8dbffe6bad5c72add02f291a6e81b63ae60 *** empty log message *** --- diff --git a/lib/zlib.c b/lib/zlib.c index 474fa7ca..ff689b1c 100644 --- a/lib/zlib.c +++ b/lib/zlib.c @@ -30,6 +30,7 @@ #define _Z_UTIL_H +#include "../rsync.h" #include "zlib.h" #ifndef local @@ -80,22 +81,8 @@ extern char *z_errmsg[]; /* indexed by 1-zlib_error */ /* The minimum and maximum match lengths */ /* functions */ - -#if defined(KERNEL) || defined(_KERNEL) -# define zmemcpy(d, s, n) bcopy((s), (d), (n)) -# define zmemzero bzero -#else -#if defined(STDC) && !defined(HAVE_MEMCPY) && !defined(NO_MEMCPY) -# define HAVE_MEMCPY -#endif -#ifdef HAVE_MEMCPY -# define zmemcpy memcpy -# define zmemzero(dest, len) memset(dest, 0, len) -#else - extern void zmemcpy OF((Bytef* dest, Bytef* source, uInt len)); - extern void zmemzero OF((Bytef* dest, uInt len)); -#endif -#endif +#define zmemcpy(d, s, n) bcopy((s), (d), (n)) +#define zmemzero bzero /* Diagnostic functions */ #ifdef DEBUG_ZLIB @@ -468,7 +455,7 @@ local void ct_stored_type_only OF((deflate_state *s)); /* From: deflate.c,v 1.8 1995/05/03 17:27:08 jloup Exp */ -local char zlib_copyright[] = " deflate Copyright 1995 Jean-loup Gailly "; +char zlib_copyright[] = " deflate Copyright 1995 Jean-loup Gailly "; /* If you use the zlib library in a product, an acknowledgment is welcome in the documentation of your product. If for some reason you cannot @@ -535,7 +522,7 @@ local void lm_init OF((deflate_state *s)); local int longest_match OF((deflate_state *s, IPos cur_match)); local void putShortMSB OF((deflate_state *s, uInt b)); local void flush_pending OF((z_stream *strm)); -local int read_buf OF((z_stream *strm, charf *buf, unsigned size)); +local int zread_buf OF((z_stream *strm, charf *buf, unsigned size)); #ifdef ASMV void match_init OF((void)); /* asm code initialization */ #endif @@ -874,7 +861,7 @@ int deflateEnd (strm) * Read a new buffer from the current input stream, update the adler32 * and total number of bytes read. */ -local int read_buf(strm, buf, size) +local int zread_buf(strm, buf, size) z_stream *strm; charf *buf; unsigned size; @@ -1179,7 +1166,7 @@ local void fill_window(s) */ Assert(more >= 2, "more < 2"); - n = read_buf(s->strm, (charf *)s->window + s->strstart + s->lookahead, + n = zread_buf(s->strm, (charf *)s->window + s->strstart + s->lookahead, more); s->lookahead += n; @@ -1671,7 +1658,6 @@ local void send_bits(s, value, length) #endif /* DEBUG_ZLIB */ -#define MAX(a,b) (a >= b ? a : b) /* the arguments must not have side effects */ /* =========================================================================== diff --git a/token.c b/token.c index 4e36cc69..35b980b8 100644 --- a/token.c +++ b/token.c @@ -367,8 +367,6 @@ int recv_token(int f,char **data) */ void see_token(char *data, int toklen) { - int r; - if (do_compression) see_deflate_token(data, toklen); }