aboutsummaryrefslogtreecommitdiff
path: root/src/testzzuf/test_get.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/testzzuf/test_get.c')
-rw-r--r--src/testzzuf/test_get.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/testzzuf/test_get.c b/src/testzzuf/test_get.c
index 7d3173e7..c3f4a0fb 100644
--- a/src/testzzuf/test_get.c
+++ b/src/testzzuf/test_get.c
@@ -67,7 +67,7 @@ ahc_echo (void *cls,
67 const char *method, 67 const char *method,
68 const char *version, 68 const char *version,
69 const char *upload_data, size_t *upload_data_size, 69 const char *upload_data, size_t *upload_data_size,
70 void **unused) 70 void **req_cls)
71{ 71{
72 static int ptr; 72 static int ptr;
73 const char *me = cls; 73 const char *me = cls;
@@ -87,12 +87,12 @@ ahc_echo (void *cls,
87 fprintf (stderr, "Upload data is NULL with non-zero size.\n"); 87 fprintf (stderr, "Upload data is NULL with non-zero size.\n");
88 if (0 != strcmp (me, method)) 88 if (0 != strcmp (me, method))
89 return MHD_NO; /* unexpected method */ 89 return MHD_NO; /* unexpected method */
90 if (&ptr != *unused) 90 if (&ptr != *req_cls)
91 { 91 {
92 *unused = &ptr; 92 *req_cls = &ptr;
93 return MHD_YES; 93 return MHD_YES;
94 } 94 }
95 *unused = NULL; 95 *req_cls = NULL;
96 response = MHD_create_response_from_buffer (strlen (url), 96 response = MHD_create_response_from_buffer (strlen (url),
97 (void *) url, 97 (void *) url,
98 MHD_RESPMEM_MUST_COPY); 98 MHD_RESPMEM_MUST_COPY);