summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorjasper <jasper@openbsd.org>2016-09-16 15:50:11 +0000
committerjasper <jasper@openbsd.org>2016-09-16 15:50:11 +0000
commit3fa59239f121f76d6135e819957318dd63b56aa5 (patch)
treef3ff0ce5017359c62783b26671e12c8e6a062951 /sys
parentRevert last. -f is a bad bad idea here. (diff)
downloadwireguard-openbsd-3fa59239f121f76d6135e819957318dd63b56aa5.tar.xz
wireguard-openbsd-3fa59239f121f76d6135e819957318dd63b56aa5.zip
unifdef SAVE_MEMORY which is no longer set nor used
ok deraadt@ millert@
Diffstat (limited to 'sys')
-rw-r--r--sys/lib/libsa/cread.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/sys/lib/libsa/cread.c b/sys/lib/libsa/cread.c
index e8a9c63856f..4f3410623f6 100644
--- a/sys/lib/libsa/cread.c
+++ b/sys/lib/libsa/cread.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cread.c,v 1.13 2009/01/18 21:46:50 miod Exp $ */
+/* $OpenBSD: cread.c,v 1.14 2016/09/16 15:50:11 jasper Exp $ */
/* $NetBSD: cread.c,v 1.2 1997/02/04 18:38:20 thorpej Exp $ */
/*
@@ -47,11 +47,7 @@
#define zmemcpy memcpy
-#ifdef SAVE_MEMORY
-#define Z_BUFSIZE 1024
-#else
#define Z_BUFSIZE 4096
-#endif
static int gz_magic[2] = {0x1f, 0x8b}; /* gzip magic header */
@@ -210,11 +206,7 @@ open(const char *fname, int mode)
goto errout;
bzero(s, sizeof(struct sd));
-#ifdef SAVE_MEMORY
- if (inflateInit2(&(s->stream), -11) != Z_OK)
-#else
if (inflateInit2(&(s->stream), -15) != Z_OK)
-#endif
goto errout;
s->stream.next_in = s->inbuf = (unsigned char *)alloc(Z_BUFSIZE);