diff options
Diffstat (limited to 'src/examples/benchmark.c')
-rw-r--r-- | src/examples/benchmark.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/examples/benchmark.c b/src/examples/benchmark.c index a579d42b..185e3824 100644 --- a/src/examples/benchmark.c +++ b/src/examples/benchmark.c | |||
@@ -62,7 +62,7 @@ static struct MHD_Response *response; | |||
62 | * | 62 | * |
63 | * @param cls client-defined closure | 63 | * @param cls client-defined closure |
64 | * @param connection connection handle | 64 | * @param connection connection handle |
65 | * @param con_cls value as set by the last call to | 65 | * @param req_cls value as set by the last call to |
66 | * the MHD_AccessHandlerCallback | 66 | * the MHD_AccessHandlerCallback |
67 | * @param toe reason for request termination | 67 | * @param toe reason for request termination |
68 | * @see MHD_OPTION_NOTIFY_COMPLETED | 68 | * @see MHD_OPTION_NOTIFY_COMPLETED |
@@ -70,10 +70,10 @@ static struct MHD_Response *response; | |||
70 | static void | 70 | static void |
71 | completed_callback (void *cls, | 71 | completed_callback (void *cls, |
72 | struct MHD_Connection *connection, | 72 | struct MHD_Connection *connection, |
73 | void **con_cls, | 73 | void **req_cls, |
74 | enum MHD_RequestTerminationCode toe) | 74 | enum MHD_RequestTerminationCode toe) |
75 | { | 75 | { |
76 | struct timeval *tv = *con_cls; | 76 | struct timeval *tv = *req_cls; |
77 | struct timeval tve; | 77 | struct timeval tve; |
78 | uint64_t delta; | 78 | uint64_t delta; |
79 | (void) cls; /* Unused. Silent compiler warning. */ | 79 | (void) cls; /* Unused. Silent compiler warning. */ |
@@ -119,14 +119,14 @@ ahc_echo (void *cls, | |||
119 | const char *url, | 119 | const char *url, |
120 | const char *method, | 120 | const char *method, |
121 | const char *version, | 121 | const char *version, |
122 | const char *upload_data, size_t *upload_data_size, void **ptr) | 122 | const char *upload_data, size_t *upload_data_size, void **req_cls) |
123 | { | 123 | { |
124 | (void) cls; /* Unused. Silent compiler warning. */ | 124 | (void) cls; /* Unused. Silent compiler warning. */ |
125 | (void) url; /* Unused. Silent compiler warning. */ | 125 | (void) url; /* Unused. Silent compiler warning. */ |
126 | (void) version; /* Unused. Silent compiler warning. */ | 126 | (void) version; /* Unused. Silent compiler warning. */ |
127 | (void) upload_data; /* Unused. Silent compiler warning. */ | 127 | (void) upload_data; /* Unused. Silent compiler warning. */ |
128 | (void) upload_data_size; /* Unused. Silent compiler warning. */ | 128 | (void) upload_data_size; /* Unused. Silent compiler warning. */ |
129 | (void) ptr; /* Unused. Silent compiler warning. */ | 129 | (void) req_cls; /* Unused. Silent compiler warning. */ |
130 | 130 | ||
131 | if (0 != strcmp (method, "GET")) | 131 | if (0 != strcmp (method, "GET")) |
132 | return MHD_NO; /* unexpected method */ | 132 | return MHD_NO; /* unexpected method */ |