diff options
author | Werner Koch <wk@gnupg.org> | 1999-06-26 12:23:06 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 1999-06-26 12:23:06 +0200 |
commit | 080c9ca49f4d0b0aa07e00e1eb84bc39bf4c8562 (patch) | |
tree | 7d387cb3da17d9b3e25aef7f85acbad21f75be7f /util/secmem.c | |
parent | See ChangeLog: Wed Jun 16 20:16:21 CEST 1999 Werner Koch (diff) | |
download | gnupg2-080c9ca49f4d0b0aa07e00e1eb84bc39bf4c8562.tar.xz gnupg2-080c9ca49f4d0b0aa07e00e1eb84bc39bf4c8562.zip |
See ChangeLog: Sat Jun 26 12:15:59 CEST 1999 Werner Koch
Diffstat (limited to '')
-rw-r--r-- | util/secmem.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/util/secmem.c b/util/secmem.c index f48b0edb0..8f7c428e4 100644 --- a/util/secmem.c +++ b/util/secmem.c @@ -40,7 +40,7 @@ #define MAP_ANONYMOUS MAP_ANON #endif -#define DEFAULT_POOLSIZE 8196 +#define DEFAULT_POOLSIZE 16384 typedef struct memblock_struct MEMBLOCK; struct memblock_struct { @@ -184,7 +184,7 @@ init_pool( size_t n) static void compress_pool(void) { - + /* fixme: we really should do this */ } void @@ -290,6 +290,7 @@ secmem_malloc( size_t size ) max_alloced = cur_alloced; if( cur_blocks > max_blocks ) max_blocks = cur_blocks; + return &mb->u.aligned.c; } |