diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2022-01-18 15:17:21 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2022-01-18 15:18:40 +0300 |
commit | bd41946e8f4f2086f7b2fcacc468a668c0676aff (patch) | |
tree | 151e103d07dc210f8365bbef0c26361d29873850 /src/testzzuf/test_put_chunked.c | |
parent | 17c22c2c3b8e2b56874ff701be58e7c10d1d41f4 (diff) | |
download | libmicrohttpd-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/testzzuf/test_put_chunked.c')
-rw-r--r-- | src/testzzuf/test_put_chunked.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/testzzuf/test_put_chunked.c b/src/testzzuf/test_put_chunked.c index 83cfe844..34c03215 100644 --- a/src/testzzuf/test_put_chunked.c +++ b/src/testzzuf/test_put_chunked.c | |||
@@ -83,13 +83,13 @@ ahc_echo (void *cls, | |||
83 | const char *method, | 83 | const char *method, |
84 | const char *version, | 84 | const char *version, |
85 | const char *upload_data, size_t *upload_data_size, | 85 | const char *upload_data, size_t *upload_data_size, |
86 | void **unused) | 86 | void **req_cls) |
87 | { | 87 | { |
88 | int *done = cls; | 88 | int *done = cls; |
89 | struct MHD_Response *response; | 89 | struct MHD_Response *response; |
90 | enum MHD_Result ret; | 90 | enum MHD_Result ret; |
91 | int have; | 91 | int have; |
92 | (void) version; (void) unused; /* Unused. Silent compiler warning. */ | 92 | (void) version; (void) req_cls; /* Unused. Silent compiler warning. */ |
93 | 93 | ||
94 | if (NULL == url) | 94 | if (NULL == url) |
95 | fprintf (stderr, "The \"url\" parameter is NULL.\n"); | 95 | fprintf (stderr, "The \"url\" parameter is NULL.\n"); |