aboutsummaryrefslogtreecommitdiff
path: root/src/examples/digest_auth_example.c
diff options
context:
space:
mode:
authorEvgeny Grin (Karlson2k) <k2k@narod.ru>2022-01-18 15:17:21 +0300
committerEvgeny Grin (Karlson2k) <k2k@narod.ru>2022-01-18 15:18:40 +0300
commitbd41946e8f4f2086f7b2fcacc468a668c0676aff (patch)
tree151e103d07dc210f8365bbef0c26361d29873850 /src/examples/digest_auth_example.c
parent17c22c2c3b8e2b56874ff701be58e7c10d1d41f4 (diff)
downloadlibmicrohttpd-bd41946e8f4f2086f7b2fcacc468a668c0676aff.tar.gz
libmicrohttpd-bd41946e8f4f2086f7b2fcacc468a668c0676aff.zip
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.
Diffstat (limited to 'src/examples/digest_auth_example.c')
-rw-r--r--src/examples/digest_auth_example.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/examples/digest_auth_example.c b/src/examples/digest_auth_example.c
index 073726ad..44faefeb 100644
--- a/src/examples/digest_auth_example.c
+++ b/src/examples/digest_auth_example.c
@@ -40,7 +40,7 @@ ahc_echo (void *cls,
40 const char *url, 40 const char *url,
41 const char *method, 41 const char *method,
42 const char *version, 42 const char *version,
43 const char *upload_data, size_t *upload_data_size, void **ptr) 43 const char *upload_data, size_t *upload_data_size, void **req_cls)
44{ 44{
45 struct MHD_Response *response; 45 struct MHD_Response *response;
46 char *username; 46 char *username;
@@ -54,7 +54,7 @@ ahc_echo (void *cls,
54 (void) version; /* Unused. Silent compiler warning. */ 54 (void) version; /* Unused. Silent compiler warning. */
55 (void) upload_data; /* Unused. Silent compiler warning. */ 55 (void) upload_data; /* Unused. Silent compiler warning. */
56 (void) upload_data_size; /* Unused. Silent compiler warning. */ 56 (void) upload_data_size; /* Unused. Silent compiler warning. */
57 (void) ptr; /* Unused. Silent compiler warning. */ 57 (void) req_cls; /* Unused. Silent compiler warning. */
58 58
59 username = MHD_digest_auth_get_username (connection); 59 username = MHD_digest_auth_get_username (connection);
60 if (NULL == username) 60 if (NULL == username)