aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2017-11-23 18:08:35 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2017-11-23 18:08:35 +0300
commit54cd6ac43708793ee7e03a2ac1038fd86e045030 (patch)
tree4933c452b712c385804661569b25d8ca89d4320d
parentadd9d89d3b3b5be84b35ef85d490a1b2b34bca7f (diff)
downloadlibmicrohttpd-54cd6ac43708793ee7e03a2ac1038fd86e045030.tar.gz
libmicrohttpd-54cd6ac43708793ee7e03a2ac1038fd86e045030.zip
Improved doxy for MHD_free() and MHD_digest_auth_get_username()
-rw-r--r--src/include/microhttpd.h1
-rw-r--r--src/microhttpd/digestauth.c1
-rw-r--r--src/microhttpd/memorypool.c3
3 files changed, 4 insertions, 1 deletions
diff --git a/src/include/microhttpd.h b/src/include/microhttpd.h
index 6b749477..e7d8bf52 100644
--- a/src/include/microhttpd.h
+++ b/src/include/microhttpd.h
@@ -3117,6 +3117,7 @@ MHD_digest_auth_get_username (struct MHD_Connection *connection);
3117 * Free the memory given by @a ptr. Calls "free(ptr)". This function 3117 * Free the memory given by @a ptr. Calls "free(ptr)". This function
3118 * should be used to free the username returned by 3118 * should be used to free the username returned by
3119 * #MHD_digest_auth_get_username(). 3119 * #MHD_digest_auth_get_username().
3120 * @note Since v0.9.56
3120 * 3121 *
3121 * @param ptr pointer to free. 3122 * @param ptr pointer to free.
3122 */ 3123 */
diff --git a/src/microhttpd/digestauth.c b/src/microhttpd/digestauth.c
index ace3cdc2..509652e8 100644
--- a/src/microhttpd/digestauth.c
+++ b/src/microhttpd/digestauth.c
@@ -462,6 +462,7 @@ check_nonce_nc (struct MHD_Connection *connection,
462 * @param connection The MHD connection structure 462 * @param connection The MHD connection structure
463 * @return NULL if no username could be found, a pointer 463 * @return NULL if no username could be found, a pointer
464 * to the username if found 464 * to the username if found
465 * @warning Returned value must be freed by #MHD_free().
465 * @ingroup authentication 466 * @ingroup authentication
466 */ 467 */
467char * 468char *
diff --git a/src/microhttpd/memorypool.c b/src/microhttpd/memorypool.c
index 163aa4e3..bda45e1e 100644
--- a/src/microhttpd/memorypool.c
+++ b/src/microhttpd/memorypool.c
@@ -81,10 +81,11 @@ struct MemoryPool
81 * Free the memory given by @a ptr. Calls "free(ptr)". This function 81 * Free the memory given by @a ptr. Calls "free(ptr)". This function
82 * should be used to free the username returned by 82 * should be used to free the username returned by
83 * #MHD_digest_auth_get_username(). 83 * #MHD_digest_auth_get_username().
84 * @note Since v0.9.56
84 * 85 *
85 * @param ptr pointer to free. 86 * @param ptr pointer to free.
86 */ 87 */
87void 88_MHD_EXTERN void
88MHD_free (void *ptr) 89MHD_free (void *ptr)
89{ 90{
90 free (ptr); 91 free (ptr);