diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2019-06-12 17:37:14 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2019-06-12 17:37:14 +0300 |
commit | 2abfb2ccca43a2db29de5c76b4338eb929bd284b (patch) | |
tree | a93600b317586e820a9b09db48e031d399677173 /src/microhttpd/memorypool.c | |
parent | 16c9a00cb7dc06ee4ef988f443da7c1ad780b3f6 (diff) | |
download | libmicrohttpd-2abfb2ccca43a2db29de5c76b4338eb929bd284b.tar.gz libmicrohttpd-2abfb2ccca43a2db29de5c76b4338eb929bd284b.zip |
memorypool: refactored includes, moved out unrelated function
Diffstat (limited to 'src/microhttpd/memorypool.c')
-rw-r--r-- | src/microhttpd/memorypool.c | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/src/microhttpd/memorypool.c b/src/microhttpd/memorypool.c index 9639d552..415b8aa5 100644 --- a/src/microhttpd/memorypool.c +++ b/src/microhttpd/memorypool.c | |||
@@ -25,6 +25,7 @@ | |||
25 | * @author Karlson2k (Evgeny Grin) | 25 | * @author Karlson2k (Evgeny Grin) |
26 | */ | 26 | */ |
27 | #include "memorypool.h" | 27 | #include "memorypool.h" |
28 | #include "internal.h" | ||
28 | #include "mhd_assert.h" | 29 | #include "mhd_assert.h" |
29 | 30 | ||
30 | /* define MAP_ANONYMOUS for Mac OS X */ | 31 | /* define MAP_ANONYMOUS for Mac OS X */ |
@@ -81,21 +82,6 @@ struct MemoryPool | |||
81 | 82 | ||
82 | 83 | ||
83 | /** | 84 | /** |
84 | * Free the memory given by @a ptr. Calls "free(ptr)". This function | ||
85 | * should be used to free the username returned by | ||
86 | * #MHD_digest_auth_get_username(). | ||
87 | * @note Since v0.9.56 | ||
88 | * | ||
89 | * @param ptr pointer to free. | ||
90 | */ | ||
91 | _MHD_EXTERN void | ||
92 | MHD_free (void *ptr) | ||
93 | { | ||
94 | free (ptr); | ||
95 | } | ||
96 | |||
97 | |||
98 | /** | ||
99 | * Create a memory pool. | 85 | * Create a memory pool. |
100 | * | 86 | * |
101 | * @param max maximum size of the pool | 87 | * @param max maximum size of the pool |