summaryrefslogtreecommitdiffstats
path: root/util/secmem.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>1999-06-26 12:23:06 +0200
committerWerner Koch <wk@gnupg.org>1999-06-26 12:23:06 +0200
commit080c9ca49f4d0b0aa07e00e1eb84bc39bf4c8562 (patch)
tree7d387cb3da17d9b3e25aef7f85acbad21f75be7f /util/secmem.c
parentSee ChangeLog: Wed Jun 16 20:16:21 CEST 1999 Werner Koch (diff)
downloadgnupg2-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.c5
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;
}