diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2017-07-27 12:21:52 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2017-07-27 12:21:52 +0300 |
commit | 783c7bd4ed840e64cfdc30c926212d405f6d6b41 (patch) | |
tree | 2954785384e5bc99e29ac33f33f70e9db9efe22f /src/examples | |
parent | bb1699636bcc51526f2cd7ba268ae500d6a54a96 (diff) | |
download | libmicrohttpd-783c7bd4ed840e64cfdc30c926212d405f6d6b41.tar.gz libmicrohttpd-783c7bd4ed840e64cfdc30c926212d405f6d6b41.zip |
chunked_example.c: cosmetics
Diffstat (limited to 'src/examples')
-rw-r--r-- | src/examples/chunked_example.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/examples/chunked_example.c b/src/examples/chunked_example.c index d8c2b7a7..96ae148a 100644 --- a/src/examples/chunked_example.c +++ b/src/examples/chunked_example.c | |||
@@ -26,7 +26,7 @@ | |||
26 | #include "platform.h" | 26 | #include "platform.h" |
27 | #include <microhttpd.h> | 27 | #include <microhttpd.h> |
28 | 28 | ||
29 | struct responseContentCallbackParam | 29 | struct ResponseContentCallbackParam |
30 | { | 30 | { |
31 | const char *response_data; | 31 | const char *response_data; |
32 | size_t response_size; | 32 | size_t response_size; |
@@ -39,8 +39,8 @@ callback (void *cls, | |||
39 | size_t buf_size) | 39 | size_t buf_size) |
40 | { | 40 | { |
41 | size_t size_to_copy; | 41 | size_t size_to_copy; |
42 | struct responseContentCallbackParam * const param = | 42 | struct ResponseContentCallbackParam * const param = |
43 | (struct responseContentCallbackParam *)cls; | 43 | (struct ResponseContentCallbackParam *)cls; |
44 | 44 | ||
45 | /* Note: 'pos' will never exceed size of transmitted data. */ | 45 | /* Note: 'pos' will never exceed size of transmitted data. */ |
46 | /* You can use 'pos == param->response_size' in next check. */ | 46 | /* You can use 'pos == param->response_size' in next check. */ |
@@ -96,7 +96,7 @@ ahc_echo (void *cls, | |||
96 | const char *upload_data, size_t *upload_data_size, void **ptr) | 96 | const char *upload_data, size_t *upload_data_size, void **ptr) |
97 | { | 97 | { |
98 | static int aptr; | 98 | static int aptr; |
99 | struct responseContentCallbackParam * callback_param; | 99 | struct ResponseContentCallbackParam * callback_param; |
100 | struct MHD_Response *response; | 100 | struct MHD_Response *response; |
101 | int ret; | 101 | int ret; |
102 | 102 | ||
@@ -109,7 +109,7 @@ ahc_echo (void *cls, | |||
109 | return MHD_YES; | 109 | return MHD_YES; |
110 | } | 110 | } |
111 | 111 | ||
112 | callback_param = malloc (sizeof(struct responseContentCallbackParam)); | 112 | callback_param = malloc (sizeof(struct ResponseContentCallbackParam)); |
113 | if (NULL == callback_param) | 113 | if (NULL == callback_param) |
114 | return MHD_NO; /* Not enough memory. */ | 114 | return MHD_NO; /* Not enough memory. */ |
115 | 115 | ||