Re: libsa, stop saving memory

2016-09-14 Thread Todd C. Miller
On Wed, 14 Sep 2016 20:41:48 +0200, Jasper Lievisse Adriaanse wrote:

> nothing defines SAVE_MEMORY nor has it been modified since -r1.1.
> ok to zap it?

OK millert@

 - todd



libsa, stop saving memory

2016-09-14 Thread Jasper Lievisse Adriaanse
Hi,

nothing defines SAVE_MEMORY nor has it been modified since -r1.1.
ok to zap it?

Index: cread.c
===
RCS file: /cvs/src/sys/lib/libsa/cread.c,v
retrieving revision 1.13
diff -u -p -r1.13 cread.c
--- cread.c 18 Jan 2009 21:46:50 -  1.13
+++ cread.c 14 Sep 2016 18:39:23 -
@@ -47,11 +47,7 @@
 
 #define zmemcpymemcpy
 
-#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);

-- 
jasper