about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2013-06-15 11:22:11 +0000
committerEric Wong <normalperson@yhbt.net>2013-06-15 11:22:11 +0000
commitdf5a65a089c82659ab5e2636d140822ea18674b8 (patch)
treee8459e17956b165c2d87f80b530d6137d618b9b1
parentc6a3d821d83abec0f9f62ceb450313466f6d7428 (diff)
downloadcmogstored-df5a65a089c82659ab5e2636d140822ea18674b8.tar.gz
Lines longer than 80 columns aren't readable on my screen
with gigantic fonts.
-rw-r--r--http_get.c3
-rw-r--r--http_put.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/http_get.c b/http_get.c
index e8f8f4a..8fc566e 100644
--- a/http_get.c
+++ b/http_get.c
@@ -88,7 +88,8 @@ static off_t http_get_resp_hdr(struct mog_http *http, struct stat *sb)
                                 goto resp_200;
                         count = (long long)(sb->st_size - offset);
                 } else { /* bytes=M-N*/
-                        assert(http->_p.range_beg >= 0 && http->_p.range_end >= 0
+                        assert(http->_p.range_beg >= 0
+                               && http->_p.range_end >= 0
                                && "should've sent 416");
                         offset = (long long)http->_p.range_beg;
 
diff --git a/http_put.c b/http_put.c
index 999d3a7..9974c93 100644
--- a/http_put.c
+++ b/http_put.c
@@ -284,7 +284,8 @@ static bool lengths_ok(struct mog_http *http)
                  * WARNING: Eric Wong sucks at arithmetic, check this:
                  */
                 if (http->_p.content_len >= 0) {
-                        off_t expect = http->_p.range_end - http->_p.range_beg + 1;
+                        off_t expect = http->_p.range_end -
+                                        http->_p.range_beg + 1;
 
                         if (http->_p.content_len != expect)
                                 return false;