mirror of
https://git.gnunet.org/libmicrohttpd.git
synced 2026-09-27 04:09:31 +03:00
Renamed 'con_cls' -> 'req_cls' for access handler callback
The argument is actually request-specific, not connection specific. The name was confusing. Fixed related documentation and clarified usage. Also fixed code where argument named 'unused' was actually used.
This commit is contained in:
@@ -47,7 +47,7 @@ static enum MHD_Result
|
||||
query_session_ahc (void *cls, struct MHD_Connection *connection,
|
||||
const char *url, const char *method,
|
||||
const char *version, const char *upload_data,
|
||||
size_t *upload_data_size, void **ptr)
|
||||
size_t *upload_data_size, void **req_cls)
|
||||
{
|
||||
struct MHD_Response *response;
|
||||
enum MHD_Result ret;
|
||||
@@ -55,9 +55,9 @@ query_session_ahc (void *cls, struct MHD_Connection *connection,
|
||||
(void) cls; (void) url; (void) method; (void) version; /* Unused. Silent compiler warning. */
|
||||
(void) upload_data; (void) upload_data_size; /* Unused. Silent compiler warning. */
|
||||
|
||||
if (NULL == *ptr)
|
||||
if (NULL == *req_cls)
|
||||
{
|
||||
*ptr = (void *) &query_session_ahc;
|
||||
*req_cls = (void *) &query_session_ahc;
|
||||
return MHD_YES;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user