aboutsummaryrefslogtreecommitdiff
path: root/src/testcurl/test_get_sendfile.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/testcurl/test_get_sendfile.c')
-rw-r--r--src/testcurl/test_get_sendfile.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/testcurl/test_get_sendfile.c b/src/testcurl/test_get_sendfile.c
index 84929d81..4ca57e23 100644
--- a/src/testcurl/test_get_sendfile.c
+++ b/src/testcurl/test_get_sendfile.c
@@ -84,7 +84,7 @@ ahc_echo (void *cls,
84 const char *method, 84 const char *method,
85 const char *version, 85 const char *version,
86 const char *upload_data, size_t *upload_data_size, 86 const char *upload_data, size_t *upload_data_size,
87 void **unused) 87 void **req_cls)
88{ 88{
89 static int ptr; 89 static int ptr;
90 const char *me = cls; 90 const char *me = cls;
@@ -96,12 +96,12 @@ ahc_echo (void *cls,
96 96
97 if (0 != strcmp (me, method)) 97 if (0 != strcmp (me, method))
98 return MHD_NO; /* unexpected method */ 98 return MHD_NO; /* unexpected method */
99 if (&ptr != *unused) 99 if (&ptr != *req_cls)
100 { 100 {
101 *unused = &ptr; 101 *req_cls = &ptr;
102 return MHD_YES; 102 return MHD_YES;
103 } 103 }
104 *unused = NULL; 104 *req_cls = NULL;
105 fd = open (sourcefile, O_RDONLY); 105 fd = open (sourcefile, O_RDONLY);
106 if (fd == -1) 106 if (fd == -1)
107 { 107 {