diff options
Diffstat (limited to 'src/examples/suspend_resume_epoll.c')
-rw-r--r-- | src/examples/suspend_resume_epoll.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/examples/suspend_resume_epoll.c b/src/examples/suspend_resume_epoll.c index d25c3b21..6b660b00 100644 --- a/src/examples/suspend_resume_epoll.c +++ b/src/examples/suspend_resume_epoll.c | |||
@@ -49,7 +49,7 @@ ahc_echo (void *cls, | |||
49 | const char *url, | 49 | const char *url, |
50 | const char *method, | 50 | const char *method, |
51 | const char *version, | 51 | const char *version, |
52 | const char *upload_data, size_t *upload_data_size, void **ptr) | 52 | const char *upload_data, size_t *upload_data_size, void **req_cls) |
53 | { | 53 | { |
54 | struct MHD_Response *response; | 54 | struct MHD_Response *response; |
55 | enum MHD_Result ret; | 55 | enum MHD_Result ret; |
@@ -62,7 +62,7 @@ ahc_echo (void *cls, | |||
62 | (void) version; /* Unused. Silence compiler warning. */ | 62 | (void) version; /* Unused. Silence compiler warning. */ |
63 | (void) upload_data; /* Unused. Silence compiler warning. */ | 63 | (void) upload_data; /* Unused. Silence compiler warning. */ |
64 | (void) upload_data_size; /* Unused. Silence compiler warning. */ | 64 | (void) upload_data_size; /* Unused. Silence compiler warning. */ |
65 | req = *ptr; | 65 | req = *req_cls; |
66 | if (NULL == req) | 66 | if (NULL == req) |
67 | { | 67 | { |
68 | 68 | ||
@@ -71,7 +71,7 @@ ahc_echo (void *cls, | |||
71 | return MHD_NO; | 71 | return MHD_NO; |
72 | req->connection = connection; | 72 | req->connection = connection; |
73 | req->timerfd = -1; | 73 | req->timerfd = -1; |
74 | *ptr = req; | 74 | *req_cls = req; |
75 | return MHD_YES; | 75 | return MHD_YES; |
76 | } | 76 | } |
77 | 77 | ||
@@ -120,10 +120,10 @@ ahc_echo (void *cls, | |||
120 | static void | 120 | static void |
121 | connection_done (void *cls, | 121 | connection_done (void *cls, |
122 | struct MHD_Connection *connection, | 122 | struct MHD_Connection *connection, |
123 | void **con_cls, | 123 | void **req_cls, |
124 | enum MHD_RequestTerminationCode toe) | 124 | enum MHD_RequestTerminationCode toe) |
125 | { | 125 | { |
126 | struct Request *req = *con_cls; | 126 | struct Request *req = *req_cls; |
127 | 127 | ||
128 | (void) cls; | 128 | (void) cls; |
129 | (void) connection; | 129 | (void) connection; |