aboutsummaryrefslogtreecommitdiff
path: root/src/daemon/memorypool.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/daemon/memorypool.c')
-rw-r--r--src/daemon/memorypool.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/daemon/memorypool.c b/src/daemon/memorypool.c
index 1721fcfe..6310d7d7 100644
--- a/src/daemon/memorypool.c
+++ b/src/daemon/memorypool.c
@@ -54,7 +54,7 @@ struct MemoryPool
54 unsigned int end; 54 unsigned int end;
55 55
56 /** 56 /**
57 * 0 if pool was malloc'ed, 1 if mmapped. 57 * MHD_NO if pool was malloc'ed, MHD_YES if mmapped.
58 */ 58 */
59 int is_mmap; 59 int is_mmap;
60}; 60};
@@ -82,11 +82,11 @@ MHD_pool_create (unsigned int max)
82 free (pool); 82 free (pool);
83 return NULL; 83 return NULL;
84 } 84 }
85 pool->is_mmap = 0; 85 pool->is_mmap = MHD_NO;
86 } 86 }
87 else 87 else
88 { 88 {
89 pool->is_mmap = 1; 89 pool->is_mmap = MHD_YES;
90 } 90 }
91 pool->pos = 0; 91 pool->pos = 0;
92 pool->end = max; 92 pool->end = max;
@@ -102,7 +102,7 @@ MHD_pool_destroy (struct MemoryPool *pool)
102{ 102{
103 if (pool == NULL) 103 if (pool == NULL)
104 return; 104 return;
105 if (pool->is_mmap == 0) 105 if (pool->is_mmap == MHD_NO)
106 free (pool->memory); 106 free (pool->memory);
107 else 107 else
108 MUNMAP (pool->memory, pool->size); 108 MUNMAP (pool->memory, pool->size);