aboutsummaryrefslogtreecommitdiff
path: root/src/testcurl/test_get.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/testcurl/test_get.c')
-rw-r--r--src/testcurl/test_get.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/testcurl/test_get.c b/src/testcurl/test_get.c
index 58febf7a..a60c0797 100644
--- a/src/testcurl/test_get.c
+++ b/src/testcurl/test_get.c
@@ -107,7 +107,7 @@ ahc_echo (void *cls,
107 const char *method, 107 const char *method,
108 const char *version, 108 const char *version,
109 const char *upload_data, size_t *upload_data_size, 109 const char *upload_data, size_t *upload_data_size,
110 void **unused) 110 void **req_cls)
111{ 111{
112 static int ptr; 112 static int ptr;
113 const char *me = cls; 113 const char *me = cls;
@@ -120,12 +120,12 @@ ahc_echo (void *cls,
120 120
121 if (0 != strcmp (me, method)) 121 if (0 != strcmp (me, method))
122 return MHD_NO; /* unexpected method */ 122 return MHD_NO; /* unexpected method */
123 if (&ptr != *unused) 123 if (&ptr != *req_cls)
124 { 124 {
125 *unused = &ptr; 125 *req_cls = &ptr;
126 return MHD_YES; 126 return MHD_YES;
127 } 127 }
128 *unused = NULL; 128 *req_cls = NULL;
129 v = MHD_lookup_connection_value (connection, 129 v = MHD_lookup_connection_value (connection,
130 MHD_GET_ARGUMENT_KIND, 130 MHD_GET_ARGUMENT_KIND,
131 "a"); 131 "a");
@@ -745,7 +745,7 @@ ahc_empty (void *cls,
745 const char *version, 745 const char *version,
746 const char *upload_data, 746 const char *upload_data,
747 size_t *upload_data_size, 747 size_t *upload_data_size,
748 void **unused) 748 void **req_cls)
749{ 749{
750 static int ptr; 750 static int ptr;
751 struct MHD_Response *response; 751 struct MHD_Response *response;
@@ -759,12 +759,12 @@ ahc_empty (void *cls,
759 759
760 if (0 != strcmp ("GET", method)) 760 if (0 != strcmp ("GET", method))
761 return MHD_NO; /* unexpected method */ 761 return MHD_NO; /* unexpected method */
762 if (&ptr != *unused) 762 if (&ptr != *req_cls)
763 { 763 {
764 *unused = &ptr; 764 *req_cls = &ptr;
765 return MHD_YES; 765 return MHD_YES;
766 } 766 }
767 *unused = NULL; 767 *req_cls = NULL;
768 response = MHD_create_response_from_buffer (0, 768 response = MHD_create_response_from_buffer (0,
769 NULL, 769 NULL,
770 MHD_RESPMEM_PERSISTENT); 770 MHD_RESPMEM_PERSISTENT);