diff options
Diffstat (limited to 'src/examples/minimal_example.c')
-rw-r--r-- | src/examples/minimal_example.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/examples/minimal_example.c b/src/examples/minimal_example.c index 98e7e192..4cf6401a 100644 --- a/src/examples/minimal_example.c +++ b/src/examples/minimal_example.c | |||
@@ -39,6 +39,10 @@ ahc_echo (void *cls, | |||
39 | const char *me = cls; | 39 | const char *me = cls; |
40 | struct MHD_Response *response; | 40 | struct MHD_Response *response; |
41 | int ret; | 41 | int ret; |
42 | (void)url; /* Unused. Silent compiler warning. */ | ||
43 | (void)version; /* Unused. Silent compiler warning. */ | ||
44 | (void)upload_data; /* Unused. Silent compiler warning. */ | ||
45 | (void)upload_data_size; /* Unused. Silent compiler warning. */ | ||
42 | 46 | ||
43 | if (0 != strcmp (method, "GET")) | 47 | if (0 != strcmp (method, "GET")) |
44 | return MHD_NO; /* unexpected method */ | 48 | return MHD_NO; /* unexpected method */ |
@@ -67,11 +71,11 @@ main (int argc, char *const *argv) | |||
67 | printf ("%s PORT\n", argv[0]); | 71 | printf ("%s PORT\n", argv[0]); |
68 | return 1; | 72 | return 1; |
69 | } | 73 | } |
70 | 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, */ |
71 | 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, |
72 | // 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, */ |
73 | // 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, */ |
74 | // 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, */ |
75 | atoi (argv[1]), | 79 | atoi (argv[1]), |
76 | NULL, NULL, &ahc_echo, PAGE, | 80 | NULL, NULL, &ahc_echo, PAGE, |
77 | MHD_OPTION_CONNECTION_TIMEOUT, (unsigned int) 120, | 81 | MHD_OPTION_CONNECTION_TIMEOUT, (unsigned int) 120, |