aboutsummaryrefslogtreecommitdiff
path: root/doc/examples/tlsauthentication.c
diff options
context:
space:
mode:
Diffstat (limited to 'doc/examples/tlsauthentication.c')
-rw-r--r--doc/examples/tlsauthentication.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/doc/examples/tlsauthentication.c b/doc/examples/tlsauthentication.c
index 742837e9..293e5e65 100644
--- a/doc/examples/tlsauthentication.c
+++ b/doc/examples/tlsauthentication.c
@@ -29,7 +29,7 @@ string_to_base64 (const char *message)
29 const char *lookup = 29 const char *lookup =
30 "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; 30 "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
31 unsigned long l; 31 unsigned long l;
32 int i; 32 size_t i;
33 char *tmp; 33 char *tmp;
34 size_t length = strlen (message); 34 size_t length = strlen (message);
35 35
@@ -107,7 +107,7 @@ load_file (const char *filename)
107 } 107 }
108 buffer[size] = '\0'; 108 buffer[size] = '\0';
109 109
110 if (size != fread (buffer, 1, size, fp)) 110 if (size != (long)fread (buffer, 1, size, fp))
111 { 111 {
112 free (buffer); 112 free (buffer);
113 buffer = NULL; 113 buffer = NULL;
@@ -218,6 +218,12 @@ answer_to_connection (void *cls, struct MHD_Connection *connection,
218 const char *version, const char *upload_data, 218 const char *version, const char *upload_data,
219 size_t *upload_data_size, void **con_cls) 219 size_t *upload_data_size, void **con_cls)
220{ 220{
221 (void)cls; /* Unused. Silent compiler warning. */
222 (void)url; /* Unused. Silent compiler warning. */
223 (void)version; /* Unused. Silent compiler warning. */
224 (void)upload_data; /* Unused. Silent compiler warning. */
225 (void)upload_data_size; /* Unused. Silent compiler warning. */
226
221 if (0 != strcmp (method, "GET")) 227 if (0 != strcmp (method, "GET"))
222 return MHD_NO; 228 return MHD_NO;
223 if (NULL == *con_cls) 229 if (NULL == *con_cls)