diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-01-18 21:09:06 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-01-18 21:09:06 +0000 |
commit | d22012f34da6e518ab178f9ee7c4a0f53c3d08d6 (patch) | |
tree | eb32e1c9411ec5d33fe14a52ab6aad92f75d648f | |
parent | 2aa0b2234d89cd6fa98b60430e86a66fac4f2a3e (diff) | |
download | libmicrohttpd-d22012f34da6e518ab178f9ee7c4a0f53c3d08d6.tar.gz libmicrohttpd-d22012f34da6e518ab178f9ee7c4a0f53c3d08d6.zip |
-indenting
-rw-r--r-- | src/microhttpd/response.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/microhttpd/response.c b/src/microhttpd/response.c index 2cca3c74..cce93bcb 100644 --- a/src/microhttpd/response.c +++ b/src/microhttpd/response.c | |||
@@ -429,7 +429,9 @@ MHD_create_response_from_fd_at_offset64 (uint64_t size, | |||
429 | (size > (uint64_t)INT32_MAX || offset > (uint64_t)INT32_MAX || (size + offset) >= (uint64_t)INT32_MAX)) | 429 | (size > (uint64_t)INT32_MAX || offset > (uint64_t)INT32_MAX || (size + offset) >= (uint64_t)INT32_MAX)) |
430 | return NULL; | 430 | return NULL; |
431 | #endif | 431 | #endif |
432 | if ((int64_t)size < 0 || (int64_t)offset < 0 || (int64_t)(size + offset) < 0) | 432 | if ( ((int64_t)size < 0) || |
433 | ((int64_t)offset < 0) || | ||
434 | ((int64_t)(size + offset) < 0) ) | ||
433 | return NULL; | 435 | return NULL; |
434 | 436 | ||
435 | response = MHD_create_response_from_callback (size, | 437 | response = MHD_create_response_from_callback (size, |
@@ -477,8 +479,8 @@ MHD_create_response_from_fd (size_t size, | |||
477 | * @ingroup response | 479 | * @ingroup response |
478 | */ | 480 | */ |
479 | _MHD_EXTERN struct MHD_Response * | 481 | _MHD_EXTERN struct MHD_Response * |
480 | MHD_create_response_from_fd64(uint64_t size, | 482 | MHD_create_response_from_fd64 (uint64_t size, |
481 | int fd) | 483 | int fd) |
482 | { | 484 | { |
483 | return MHD_create_response_from_fd_at_offset64 (size, fd, 0); | 485 | return MHD_create_response_from_fd_at_offset64 (size, fd, 0); |
484 | } | 486 | } |