aboutsummaryrefslogtreecommitdiff
path: root/src/microhttpd/test_start_stop.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/microhttpd/test_start_stop.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/microhttpd/test_start_stop.c')
-rw-r--r--src/microhttpd/test_start_stop.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/microhttpd/test_start_stop.c b/src/microhttpd/test_start_stop.c
index db2d0684..34372090 100644
--- a/src/microhttpd/test_start_stop.c
+++ b/src/microhttpd/test_start_stop.c
@@ -42,11 +42,11 @@ ahc_echo (void *cls,
42 const char *method, 42 const char *method,
43 const char *version, 43 const char *version,
44 const char *upload_data, size_t *upload_data_size, 44 const char *upload_data, size_t *upload_data_size,
45 void **unused) 45 void **req_cls)
46{ 46{
47 (void) cls; (void) connection; (void) url; /* Unused. Silent compiler warning. */ 47 (void) cls; (void) connection; (void) url; /* Unused. Silent compiler warning. */
48 (void) method; (void) version; (void) upload_data; /* Unused. Silent compiler warning. */ 48 (void) method; (void) version; (void) upload_data; /* Unused. Silent compiler warning. */
49 (void) upload_data_size; (void) unused; /* Unused. Silent compiler warning. */ 49 (void) upload_data_size; (void) req_cls; /* Unused. Silent compiler warning. */
50 50
51 return MHD_NO; 51 return MHD_NO;
52} 52}