diff options
author | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2017-10-01 17:02:38 +0300 |
---|---|---|
committer | Evgeny Grin (Karlson2k) <k2k@narod.ru> | 2017-10-01 17:02:38 +0300 |
commit | 02ff959e7dd1d7dab169d3be059d5b92a8e9a558 (patch) | |
tree | f628ddaf9a3cc598e7e34a08b7bdcfb665059e2a | |
parent | 5ac497e212525a12209a3c1007a129ae85055cf7 (diff) | |
download | libmicrohttpd-02ff959e7dd1d7dab169d3be059d5b92a8e9a558.tar.gz libmicrohttpd-02ff959e7dd1d7dab169d3be059d5b92a8e9a558.zip |
sendfile_adapter(): fixed indentation
-rw-r--r-- | src/microhttpd/connection.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/microhttpd/connection.c b/src/microhttpd/connection.c index d80eabc5..3f62144a 100644 --- a/src/microhttpd/connection.c +++ b/src/microhttpd/connection.c | |||
@@ -256,22 +256,22 @@ sendfile_adapter (struct MHD_Connection *connection) | |||
256 | connection->resp_sender = MHD_resp_sender_std; | 256 | connection->resp_sender = MHD_resp_sender_std; |
257 | return MHD_ERR_AGAIN_; | 257 | return MHD_ERR_AGAIN_; |
258 | } | 258 | } |
259 | offset = (off_t) offsetu64; | 259 | offset = (off_t) offsetu64; |
260 | ret = sendfile (connection->socket_fd, | 260 | ret = sendfile (connection->socket_fd, |
261 | file_fd, | 261 | file_fd, |
262 | &offset, | 262 | &offset, |
263 | send_size); | 263 | send_size); |
264 | #else /* HAVE_SENDFILE64 */ | 264 | #else /* HAVE_SENDFILE64 */ |
265 | if ((uint64_t)OFF64_T_MAX < offsetu64) | 265 | if ((uint64_t)OFF64_T_MAX < offsetu64) |
266 | { /* Retry to send with standard 'send()'. */ | 266 | { /* Retry to send with standard 'send()'. */ |
267 | connection->resp_sender = MHD_resp_sender_std; | 267 | connection->resp_sender = MHD_resp_sender_std; |
268 | return MHD_ERR_AGAIN_; | 268 | return MHD_ERR_AGAIN_; |
269 | } | 269 | } |
270 | offset = (off64_t) offsetu64; | 270 | offset = (off64_t) offsetu64; |
271 | ret = sendfile64 (connection->socket_fd, | 271 | ret = sendfile64 (connection->socket_fd, |
272 | file_fd, | 272 | file_fd, |
273 | &offset, | 273 | &offset, |
274 | send_size); | 274 | send_size); |
275 | #endif /* HAVE_SENDFILE64 */ | 275 | #endif /* HAVE_SENDFILE64 */ |
276 | if (0 > ret) | 276 | if (0 > ret) |
277 | { | 277 | { |