aboutsummaryrefslogtreecommitdiff
path: root/src/examples/chunked_example.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/examples/chunked_example.c')
-rw-r--r--src/examples/chunked_example.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/examples/chunked_example.c b/src/examples/chunked_example.c
index 68b7ea1e..5a4c0ced 100644
--- a/src/examples/chunked_example.c
+++ b/src/examples/chunked_example.c
@@ -97,7 +97,7 @@ ahc_echo (void *cls,
97 const char *version, 97 const char *version,
98 const char *upload_data, 98 const char *upload_data,
99 size_t *upload_data_size, 99 size_t *upload_data_size,
100 void **ptr) 100 void **req_cls)
101{ 101{
102 static int aptr; 102 static int aptr;
103 struct ResponseContentCallbackParam *callback_param; 103 struct ResponseContentCallbackParam *callback_param;
@@ -111,10 +111,10 @@ ahc_echo (void *cls,
111 111
112 if (0 != strcmp (method, "GET")) 112 if (0 != strcmp (method, "GET"))
113 return MHD_NO; /* unexpected method */ 113 return MHD_NO; /* unexpected method */
114 if (&aptr != *ptr) 114 if (&aptr != *req_cls)
115 { 115 {
116 /* do never respond on first call */ 116 /* do never respond on first call */
117 *ptr = &aptr; 117 *req_cls = &aptr;
118 return MHD_YES; 118 return MHD_YES;
119 } 119 }
120 120
@@ -126,7 +126,7 @@ ahc_echo (void *cls,
126 callback_param->response_size = (sizeof(simple_response_text) 126 callback_param->response_size = (sizeof(simple_response_text)
127 / sizeof(char)) - 1; 127 / sizeof(char)) - 1;
128 128
129 *ptr = NULL; /* reset when done */ 129 *req_cls = NULL; /* reset when done */
130 response = MHD_create_response_from_callback (MHD_SIZE_UNKNOWN, 130 response = MHD_create_response_from_callback (MHD_SIZE_UNKNOWN,
131 1024, 131 1024,
132 &callback, 132 &callback,