diff options
Diffstat (limited to 'src/examples/https_fileserver_example.c')
-rw-r--r-- | src/examples/https_fileserver_example.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/examples/https_fileserver_example.c b/src/examples/https_fileserver_example.c index 3244ca6c..becf5faa 100644 --- a/src/examples/https_fileserver_example.c +++ b/src/examples/https_fileserver_example.c | |||
@@ -97,7 +97,7 @@ const char key_pem[] = | |||
97 | "-----END RSA PRIVATE KEY-----\n"; | 97 | "-----END RSA PRIVATE KEY-----\n"; |
98 | 98 | ||
99 | static int | 99 | static int |
100 | file_reader (void *cls, size_t pos, char *buf, int max) | 100 | file_reader (void *cls, uint64_t pos, char *buf, int max) |
101 | { | 101 | { |
102 | FILE *file = cls; | 102 | FILE *file = cls; |
103 | 103 | ||
@@ -112,7 +112,7 @@ http_ahc (void *cls, | |||
112 | const char *url, | 112 | const char *url, |
113 | const char *method, | 113 | const char *method, |
114 | const char *upload_data, | 114 | const char *upload_data, |
115 | const char *version, unsigned int *upload_data_size, void **ptr) | 115 | const char *version, size_t *upload_data_size, void **ptr) |
116 | { | 116 | { |
117 | static int aptr; | 117 | static int aptr; |
118 | struct MHD_Response *response; | 118 | struct MHD_Response *response; |