diff options
Diffstat (limited to 'doc/examples/hellobrowser.c')
-rw-r--r-- | doc/examples/hellobrowser.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/doc/examples/hellobrowser.c b/doc/examples/hellobrowser.c index 381a51e0..dce4ee6d 100644 --- a/doc/examples/hellobrowser.c +++ b/doc/examples/hellobrowser.c | |||
@@ -23,7 +23,14 @@ answer_to_connection (void *cls, struct MHD_Connection *connection, | |||
23 | const char *page = "<html><body>Hello, browser!</body></html>"; | 23 | const char *page = "<html><body>Hello, browser!</body></html>"; |
24 | struct MHD_Response *response; | 24 | struct MHD_Response *response; |
25 | int ret; | 25 | int ret; |
26 | 26 | (void)cls; /* Unused. Silent compiler warning. */ | |
27 | (void)url; /* Unused. Silent compiler warning. */ | ||
28 | (void)method; /* Unused. Silent compiler warning. */ | ||
29 | (void)version; /* Unused. Silent compiler warning. */ | ||
30 | (void)upload_data; /* Unused. Silent compiler warning. */ | ||
31 | (void)upload_data_size; /* Unused. Silent compiler warning. */ | ||
32 | (void)con_cls; /* Unused. Silent compiler warning. */ | ||
33 | |||
27 | response = | 34 | response = |
28 | MHD_create_response_from_buffer (strlen (page), (void *) page, | 35 | MHD_create_response_from_buffer (strlen (page), (void *) page, |
29 | MHD_RESPMEM_PERSISTENT); | 36 | MHD_RESPMEM_PERSISTENT); |
@@ -35,7 +42,7 @@ answer_to_connection (void *cls, struct MHD_Connection *connection, | |||
35 | 42 | ||
36 | 43 | ||
37 | int | 44 | int |
38 | main () | 45 | main (void) |
39 | { | 46 | { |
40 | struct MHD_Daemon *daemon; | 47 | struct MHD_Daemon *daemon; |
41 | 48 | ||