diff options
Diffstat (limited to 'src/examples/chunked_example.c')
-rw-r--r-- | src/examples/chunked_example.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/examples/chunked_example.c b/src/examples/chunked_example.c index bd4eb855..6f449c3a 100644 --- a/src/examples/chunked_example.c +++ b/src/examples/chunked_example.c | |||
@@ -57,7 +57,8 @@ callback (void *cls, | |||
57 | // Consider suspending connection until data will be ready. | 57 | // Consider suspending connection until data will be ready. |
58 | return 0; | 58 | return 0; |
59 | } | 59 | } |
60 | * End of pseudo code. */if (buf_size < (param->response_size - pos)) | 60 | * End of pseudo code. */ |
61 | if (buf_size < (param->response_size - pos)) | ||
61 | size_to_copy = buf_size; | 62 | size_to_copy = buf_size; |
62 | else | 63 | else |
63 | size_to_copy = param->response_size - pos; | 64 | size_to_copy = param->response_size - pos; |
@@ -70,7 +71,9 @@ callback (void *cls, | |||
70 | // Close connection with error. | 71 | // Close connection with error. |
71 | return MHD_CONTENT_READER_END_WITH_ERROR; | 72 | return MHD_CONTENT_READER_END_WITH_ERROR; |
72 | } | 73 | } |
73 | * End of pseudo code. *//* Return amount of data copied to buffer. */return size_to_copy; | 74 | * End of pseudo code. */ |
75 | /* Return amount of data copied to buffer. */ | ||
76 | return size_to_copy; | ||
74 | } | 77 | } |
75 | 78 | ||
76 | 79 | ||