aboutsummaryrefslogtreecommitdiff
path: root/src/testcurl/test_get_close_keep_alive.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/testcurl/test_get_close_keep_alive.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/testcurl/test_get_close_keep_alive.c')
-rw-r--r--src/testcurl/test_get_close_keep_alive.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/testcurl/test_get_close_keep_alive.c b/src/testcurl/test_get_close_keep_alive.c
index 2fca0ce3..1cb46e68 100644
--- a/src/testcurl/test_get_close_keep_alive.c
+++ b/src/testcurl/test_get_close_keep_alive.c
@@ -312,7 +312,7 @@ ahc_echo (void *cls,
312 const char *method, 312 const char *method,
313 const char *version, 313 const char *version,
314 const char *upload_data, size_t *upload_data_size, 314 const char *upload_data, size_t *upload_data_size,
315 void **unused) 315 void **req_cls)
316{ 316{
317 static int ptr; 317 static int ptr;
318 const char *me = cls; 318 const char *me = cls;
@@ -324,12 +324,12 @@ ahc_echo (void *cls,
324 324
325 if (0 != strcmp (me, method)) 325 if (0 != strcmp (me, method))
326 return MHD_NO; /* unexpected method */ 326 return MHD_NO; /* unexpected method */
327 if (&ptr != *unused) 327 if (&ptr != *req_cls)
328 { 328 {
329 *unused = &ptr; 329 *req_cls = &ptr;
330 return MHD_YES; 330 return MHD_YES;
331 } 331 }
332 *unused = NULL; 332 *req_cls = NULL;
333 if (slow_reply) 333 if (slow_reply)
334 usleep (200000); 334 usleep (200000);
335 335