diff options
Diffstat (limited to 'src/examples/http_compression.c')
-rw-r--r-- | src/examples/http_compression.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/examples/http_compression.c b/src/examples/http_compression.c index 0419a803..a91a39a3 100644 --- a/src/examples/http_compression.c +++ b/src/examples/http_compression.c | |||
@@ -96,7 +96,7 @@ ahc_echo (void *cls, | |||
96 | const char *url, | 96 | const char *url, |
97 | const char *method, | 97 | const char *method, |
98 | const char *version, | 98 | const char *version, |
99 | const char *upload_data, size_t *upload_data_size, void **ptr) | 99 | const char *upload_data, size_t *upload_data_size, void **req_cls) |
100 | { | 100 | { |
101 | struct MHD_Response *response; | 101 | struct MHD_Response *response; |
102 | enum MHD_Result ret; | 102 | enum MHD_Result ret; |
@@ -111,12 +111,12 @@ 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 (! *ptr) | 114 | if (! *req_cls) |
115 | { | 115 | { |
116 | *ptr = (void *) 1; | 116 | *req_cls = (void *) 1; |
117 | return MHD_YES; | 117 | return MHD_YES; |
118 | } | 118 | } |
119 | *ptr = NULL; | 119 | *req_cls = NULL; |
120 | 120 | ||
121 | body_str = strdup (PAGE); | 121 | body_str = strdup (PAGE); |
122 | if (NULL == body_str) | 122 | if (NULL == body_str) |