aboutsummaryrefslogtreecommitdiff
path: root/src/examples
diff options
context:
space:
mode:
authorsilvioprog <silvioprog@gmail.com>2018-10-09 01:44:50 -0300
committersilvioprog <silvioprog@gmail.com>2018-10-09 01:44:50 -0300
commit30477aab575651b6161cd7267e5722bf1cad4d03 (patch)
treeedafebf075a405768b01be29874daac39a2c802c /src/examples
parent0db81a9248b12abc74f153ebd642441d0f9c3e58 (diff)
downloadlibmicrohttpd-30477aab575651b6161cd7267e5722bf1cad4d03.tar.gz
libmicrohttpd-30477aab575651b6161cd7267e5722bf1cad4d03.zip
Style fixes.
Diffstat (limited to 'src/examples')
-rw-r--r--src/examples/benchmark_https.c4
-rw-r--r--src/examples/demo_https.c4
-rw-r--r--src/examples/minimal_example.c10
-rw-r--r--src/examples/suspend_resume_epoll.c2
-rw-r--r--src/examples/upgrade_example.c4
5 files changed, 12 insertions, 12 deletions
diff --git a/src/examples/benchmark_https.c b/src/examples/benchmark_https.c
index 87a79717..c19f0be8 100644
--- a/src/examples/benchmark_https.c
+++ b/src/examples/benchmark_https.c
@@ -204,8 +204,8 @@ main (int argc, char *const *argv)
204 MHD_OPTION_URI_LOG_CALLBACK, &uri_logger_cb, NULL, 204 MHD_OPTION_URI_LOG_CALLBACK, &uri_logger_cb, NULL,
205 MHD_OPTION_NOTIFY_COMPLETED, &completed_callback, NULL, 205 MHD_OPTION_NOTIFY_COMPLETED, &completed_callback, NULL,
206 MHD_OPTION_CONNECTION_LIMIT, (unsigned int) 1000, 206 MHD_OPTION_CONNECTION_LIMIT, (unsigned int) 1000,
207 MHD_OPTION_HTTPS_MEM_KEY, srv_signed_key_pem, 207 MHD_OPTION_HTTPS_MEM_KEY, srv_signed_key_pem,
208 MHD_OPTION_HTTPS_MEM_CERT, srv_signed_cert_pem, 208 MHD_OPTION_HTTPS_MEM_CERT, srv_signed_cert_pem,
209 MHD_OPTION_END); 209 MHD_OPTION_END);
210 if (d == NULL) 210 if (d == NULL)
211 return 1; 211 return 1;
diff --git a/src/examples/demo_https.c b/src/examples/demo_https.c
index d5542eab..067b4e1d 100644
--- a/src/examples/demo_https.c
+++ b/src/examples/demo_https.c
@@ -970,8 +970,8 @@ main (int argc, char *const *argv)
970 MHD_OPTION_CONNECTION_TIMEOUT, (unsigned int) (120 /* seconds */), 970 MHD_OPTION_CONNECTION_TIMEOUT, (unsigned int) (120 /* seconds */),
971 MHD_OPTION_THREAD_POOL_SIZE, (unsigned int) NUMBER_OF_THREADS, 971 MHD_OPTION_THREAD_POOL_SIZE, (unsigned int) NUMBER_OF_THREADS,
972 MHD_OPTION_NOTIFY_COMPLETED, &response_completed_callback, NULL, 972 MHD_OPTION_NOTIFY_COMPLETED, &response_completed_callback, NULL,
973 MHD_OPTION_HTTPS_MEM_KEY, srv_signed_key_pem, 973 MHD_OPTION_HTTPS_MEM_KEY, srv_signed_key_pem,
974 MHD_OPTION_HTTPS_MEM_CERT, srv_signed_cert_pem, 974 MHD_OPTION_HTTPS_MEM_CERT, srv_signed_cert_pem,
975 MHD_OPTION_END); 975 MHD_OPTION_END);
976 if (NULL == d) 976 if (NULL == d)
977 return 1; 977 return 1;
diff --git a/src/examples/minimal_example.c b/src/examples/minimal_example.c
index 4cf6401a..dbafda77 100644
--- a/src/examples/minimal_example.c
+++ b/src/examples/minimal_example.c
@@ -74,13 +74,13 @@ main (int argc, char *const *argv)
74 d = MHD_start_daemon (/* MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_ERROR_LOG, */ 74 d = MHD_start_daemon (/* MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_ERROR_LOG, */
75 MHD_USE_AUTO | MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_ERROR_LOG, 75 MHD_USE_AUTO | MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_ERROR_LOG,
76 /* MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_ERROR_LOG | MHD_USE_POLL, */ 76 /* MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_ERROR_LOG | MHD_USE_POLL, */
77 /* MHD_USE_THREAD_PER_CONNECTION | MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_ERROR_LOG | MHD_USE_POLL, */ 77 /* MHD_USE_THREAD_PER_CONNECTION | MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_ERROR_LOG | MHD_USE_POLL, */
78 /* MHD_USE_THREAD_PER_CONNECTION | MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_ERROR_LOG, */ 78 /* MHD_USE_THREAD_PER_CONNECTION | MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_ERROR_LOG, */
79 atoi (argv[1]), 79 atoi (argv[1]),
80 NULL, NULL, &ahc_echo, PAGE, 80 NULL, NULL, &ahc_echo, PAGE,
81 MHD_OPTION_CONNECTION_TIMEOUT, (unsigned int) 120, 81 MHD_OPTION_CONNECTION_TIMEOUT, (unsigned int) 120,
82 MHD_OPTION_STRICT_FOR_CLIENT, (int) 1, 82 MHD_OPTION_STRICT_FOR_CLIENT, (int) 1,
83 MHD_OPTION_END); 83 MHD_OPTION_END);
84 if (d == NULL) 84 if (d == NULL)
85 return 1; 85 return 1;
86 (void) getc (stdin); 86 (void) getc (stdin);
diff --git a/src/examples/suspend_resume_epoll.c b/src/examples/suspend_resume_epoll.c
index 4007cc94..73ac6e45 100644
--- a/src/examples/suspend_resume_epoll.c
+++ b/src/examples/suspend_resume_epoll.c
@@ -148,7 +148,7 @@ main (int argc,
148 atoi (argv[1]), 148 atoi (argv[1]),
149 NULL, NULL, &ahc_echo, NULL, 149 NULL, NULL, &ahc_echo, NULL,
150 MHD_OPTION_NOTIFY_COMPLETED, &connection_done, NULL, 150 MHD_OPTION_NOTIFY_COMPLETED, &connection_done, NULL,
151 MHD_OPTION_END); 151 MHD_OPTION_END);
152 if (d == NULL) 152 if (d == NULL)
153 return 1; 153 return 1;
154 154
diff --git a/src/examples/upgrade_example.c b/src/examples/upgrade_example.c
index 73cfafb2..35761c97 100644
--- a/src/examples/upgrade_example.c
+++ b/src/examples/upgrade_example.c
@@ -296,8 +296,8 @@ main (int argc,
296 atoi (argv[1]), 296 atoi (argv[1]),
297 NULL, NULL, 297 NULL, NULL,
298 &ahc_echo, NULL, 298 &ahc_echo, NULL,
299 MHD_OPTION_CONNECTION_TIMEOUT, (unsigned int) 120, 299 MHD_OPTION_CONNECTION_TIMEOUT, (unsigned int) 120,
300 MHD_OPTION_END); 300 MHD_OPTION_END);
301 if (d == NULL) 301 if (d == NULL)
302 return 1; 302 return 1;
303 (void) getc (stdin); 303 (void) getc (stdin);