aboutsummaryrefslogtreecommitdiff
path: root/src/examples/benchmark.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/examples/benchmark.c')
-rw-r--r--src/examples/benchmark.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/examples/benchmark.c b/src/examples/benchmark.c
index f9b8b5fd..9512b9bf 100644
--- a/src/examples/benchmark.c
+++ b/src/examples/benchmark.c
@@ -69,6 +69,9 @@ completed_callback (void *cls,
69 struct timeval *tv = *con_cls; 69 struct timeval *tv = *con_cls;
70 struct timeval tve; 70 struct timeval tve;
71 uint64_t delta; 71 uint64_t delta;
72 (void)cls; /* Unused. Silent compiler warning. */
73 (void)connection; /* Unused. Silent compiler warning. */
74 (void)toe; /* Unused. Silent compiler warning. */
72 75
73 if (NULL == tv) 76 if (NULL == tv)
74 return; 77 return;
@@ -94,6 +97,8 @@ uri_logger_cb (void *cls,
94 const char *uri) 97 const char *uri)
95{ 98{
96 struct timeval *tv = malloc (sizeof (struct timeval)); 99 struct timeval *tv = malloc (sizeof (struct timeval));
100 (void)cls; /* Unused. Silent compiler warning. */
101 (void)uri; /* Unused. Silent compiler warning. */
97 102
98 if (NULL != tv) 103 if (NULL != tv)
99 gettimeofday (tv, NULL); 104 gettimeofday (tv, NULL);
@@ -109,6 +114,13 @@ ahc_echo (void *cls,
109 const char *version, 114 const char *version,
110 const char *upload_data, size_t *upload_data_size, void **ptr) 115 const char *upload_data, size_t *upload_data_size, void **ptr)
111{ 116{
117 (void)cls; /* Unused. Silent compiler warning. */
118 (void)url; /* Unused. Silent compiler warning. */
119 (void)version; /* Unused. Silent compiler warning. */
120 (void)upload_data; /* Unused. Silent compiler warning. */
121 (void)upload_data_size; /* Unused. Silent compiler warning. */
122 (void)ptr; /* Unused. Silent compiler warning. */
123
112 if (0 != strcmp (method, "GET")) 124 if (0 != strcmp (method, "GET"))
113 return MHD_NO; /* unexpected method */ 125 return MHD_NO; /* unexpected method */
114 return MHD_queue_response (connection, MHD_HTTP_OK, response); 126 return MHD_queue_response (connection, MHD_HTTP_OK, response);