aboutsummaryrefslogtreecommitdiff
path: root/src/examples/upgrade_example.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/examples/upgrade_example.c')
-rw-r--r--src/examples/upgrade_example.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/examples/upgrade_example.c b/src/examples/upgrade_example.c
index af081408..73cfafb2 100644
--- a/src/examples/upgrade_example.c
+++ b/src/examples/upgrade_example.c
@@ -202,6 +202,9 @@ uh_cb (void *cls,
202{ 202{
203 struct MyData *md; 203 struct MyData *md;
204 pthread_t pt; 204 pthread_t pt;
205 (void)cls; /* Unused. Silent compiler warning. */
206 (void)connection; /* Unused. Silent compiler warning. */
207 (void)con_cls; /* Unused. Silent compiler warning. */
205 208
206 md = malloc (sizeof (struct MyData)); 209 md = malloc (sizeof (struct MyData));
207 if (NULL == md) 210 if (NULL == md)
@@ -249,6 +252,11 @@ ahc_echo (void *cls,
249 static int aptr; 252 static int aptr;
250 struct MHD_Response *response; 253 struct MHD_Response *response;
251 int ret; 254 int ret;
255 (void)cls; /* Unused. Silent compiler warning. */
256 (void)url; /* Unused. Silent compiler warning. */
257 (void)version; /* Unused. Silent compiler warning. */
258 (void)upload_data; /* Unused. Silent compiler warning. */
259 (void)upload_data_size; /* Unused. Silent compiler warning. */
252 260
253 if (0 != strcmp (method, "GET")) 261 if (0 != strcmp (method, "GET"))
254 return MHD_NO; /* unexpected method */ 262 return MHD_NO; /* unexpected method */