diff options
Diffstat (limited to 'src/microhttpd_ws/test_websocket_browser.c')
-rw-r--r-- | src/microhttpd_ws/test_websocket_browser.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/microhttpd_ws/test_websocket_browser.c b/src/microhttpd_ws/test_websocket_browser.c index 72354257..96e7755f 100644 --- a/src/microhttpd_ws/test_websocket_browser.c +++ b/src/microhttpd_ws/test_websocket_browser.c | |||
@@ -194,7 +194,7 @@ make_blocking (MHD_socket fd); | |||
194 | static void | 194 | static void |
195 | upgrade_handler (void *cls, | 195 | upgrade_handler (void *cls, |
196 | struct MHD_Connection *connection, | 196 | struct MHD_Connection *connection, |
197 | void *con_cls, | 197 | void *req_cls, |
198 | const char *extra_in, | 198 | const char *extra_in, |
199 | size_t extra_in_size, | 199 | size_t extra_in_size, |
200 | MHD_socket fd, | 200 | MHD_socket fd, |
@@ -404,7 +404,7 @@ access_handler (void *cls, | |||
404 | const char *version, | 404 | const char *version, |
405 | const char *upload_data, | 405 | const char *upload_data, |
406 | size_t *upload_data_size, | 406 | size_t *upload_data_size, |
407 | void **ptr) | 407 | void **req_cls) |
408 | { | 408 | { |
409 | static int aptr; | 409 | static int aptr; |
410 | struct MHD_Response *response; | 410 | struct MHD_Response *response; |
@@ -416,13 +416,13 @@ access_handler (void *cls, | |||
416 | 416 | ||
417 | if (0 != strcmp (method, "GET")) | 417 | if (0 != strcmp (method, "GET")) |
418 | return MHD_NO; /* unexpected method */ | 418 | return MHD_NO; /* unexpected method */ |
419 | if (&aptr != *ptr) | 419 | if (&aptr != *req_cls) |
420 | { | 420 | { |
421 | /* do never respond on first call */ | 421 | /* do never respond on first call */ |
422 | *ptr = &aptr; | 422 | *req_cls = &aptr; |
423 | return MHD_YES; | 423 | return MHD_YES; |
424 | } | 424 | } |
425 | *ptr = NULL; /* reset when done */ | 425 | *req_cls = NULL; /* reset when done */ |
426 | 426 | ||
427 | if (0 == strcmp (url, "/")) | 427 | if (0 == strcmp (url, "/")) |
428 | { | 428 | { |