summaryrefslogtreecommitdiffstats
path: root/sys/lib
diff options
context:
space:
mode:
authormickey <mickey@openbsd.org>2006-07-20 11:14:10 +0000
committermickey <mickey@openbsd.org>2006-07-20 11:14:10 +0000
commitf3d43ab75a6278422df923dce09736be71237dce (patch)
tree7c21bb685466b8966c6f49c50ffe0ecd102595b7 /sys/lib
parentadd latvian (diff)
downloadwireguard-openbsd-f3d43ab75a6278422df923dce09736be71237dce.tar.xz
wireguard-openbsd-f3d43ab75a6278422df923dce09736be71237dce.zip
adler32_combine() is not used by anything AND requires qdivrem so ifdef it out; millert@ deraadt@ ok
Diffstat (limited to 'sys/lib')
-rw-r--r--sys/lib/libz/adler32.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/lib/libz/adler32.c b/sys/lib/libz/adler32.c
index af5c523c8f3..73e134a0407 100644
--- a/sys/lib/libz/adler32.c
+++ b/sys/lib/libz/adler32.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: adler32.c,v 1.8 2005/07/20 15:56:45 millert Exp $ */
+/* $OpenBSD: adler32.c,v 1.9 2006/07/20 11:14:10 mickey Exp $ */
/* adler32.c -- compute the Adler-32 checksum of a data stream
* Copyright (C) 1995-2004 Mark Adler
* For conditions of distribution and use, see copyright notice in zlib.h
@@ -123,6 +123,7 @@ uLong ZEXPORT adler32(adler, buf, len)
return adler | (sum2 << 16);
}
+#ifdef ADLER32_COMBINE
/* ========================================================================= */
uLong ZEXPORT adler32_combine(adler1, adler2, len2)
uLong adler1;
@@ -146,3 +147,4 @@ uLong ZEXPORT adler32_combine(adler1, adler2, len2)
if (sum2 > BASE) sum2 -= BASE;
return sum1 | (sum2 << 16);
}
+#endif /* ADLER32_COMBINE */