diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2013-06-29 22:18:17 -0400 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2013-06-29 22:29:03 -0400 |
commit | 89b05af4967806fb75411a8ccb122f299f79cf52 (patch) | |
tree | 4b3f75a79683d8183f8195994d1aa9446027e435 | |
parent | 59abdb5190f4f1e4d1f4e0806803bfbc463528c4 (diff) | |
download | rockbox-89b05af4967806fb75411a8ccb122f299f79cf52.tar.gz rockbox-89b05af4967806fb75411a8ccb122f299f79cf52.zip |
Fix whitespace
Change-Id: I2072c355f05b6e709a5c179512bc2b71756163a5
-rw-r--r-- | apps/buffering.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/apps/buffering.c b/apps/buffering.c index b5bf427079..c4a96e8341 100644 --- a/apps/buffering.c +++ b/apps/buffering.c | |||
@@ -201,7 +201,7 @@ static inline uintptr_t ringbuf_sub(uintptr_t p, size_t v) | |||
201 | uintptr_t res = p; | 201 | uintptr_t res = p; |
202 | if (p < v) | 202 | if (p < v) |
203 | res += buffer_len; /* wrap */ | 203 | res += buffer_len; /* wrap */ |
204 | 204 | ||
205 | return res - v; | 205 | return res - v; |
206 | } | 206 | } |
207 | 207 | ||
@@ -1118,7 +1118,7 @@ int bufalloc(const void *src, size_t size, enum data_type type) | |||
1118 | memcpy(&buffer[buf_widx], src, size); | 1118 | memcpy(&buffer[buf_widx], src, size); |
1119 | } | 1119 | } |
1120 | } | 1120 | } |
1121 | 1121 | ||
1122 | h->fd = -1; | 1122 | h->fd = -1; |
1123 | *h->path = 0; | 1123 | *h->path = 0; |
1124 | h->filesize = size; | 1124 | h->filesize = size; |
@@ -1173,7 +1173,7 @@ static void rebuffer_handle(int handle_id, size_t newpos) | |||
1173 | h->ridx = ringbuf_add(h->data, amount); | 1173 | h->ridx = ringbuf_add(h->data, amount); |
1174 | 1174 | ||
1175 | if (buffer_handle(handle_id, amount + 1)) { | 1175 | if (buffer_handle(handle_id, amount + 1)) { |
1176 | size_t rd = ringbuf_sub(h->ridx, h->data); | 1176 | size_t rd = ringbuf_sub(h->ridx, h->data); |
1177 | size_t wr = ringbuf_sub(h->widx, h->data); | 1177 | size_t wr = ringbuf_sub(h->widx, h->data); |
1178 | if (wr >= rd) { | 1178 | if (wr >= rd) { |
1179 | /* It really did succeed */ | 1179 | /* It really did succeed */ |
@@ -1550,7 +1550,7 @@ bool buf_pin_handle(int handle_id, bool pin) | |||
1550 | h->pinned--; | 1550 | h->pinned--; |
1551 | } | 1551 | } |
1552 | 1552 | ||
1553 | return true; | 1553 | return true; |
1554 | } | 1554 | } |
1555 | 1555 | ||
1556 | bool buf_signal_handle(int handle_id, bool signal) | 1556 | bool buf_signal_handle(int handle_id, bool signal) |
@@ -1560,7 +1560,7 @@ bool buf_signal_handle(int handle_id, bool signal) | |||
1560 | return false; | 1560 | return false; |
1561 | 1561 | ||
1562 | h->signaled = signal ? 1 : 0; | 1562 | h->signaled = signal ? 1 : 0; |
1563 | return true; | 1563 | return true; |
1564 | } | 1564 | } |
1565 | 1565 | ||
1566 | /* Return the size of the ringbuffer */ | 1566 | /* Return the size of the ringbuffer */ |
@@ -1750,7 +1750,7 @@ bool buffering_reset(char *buf, size_t buflen) | |||
1750 | 1750 | ||
1751 | if (buf) { | 1751 | if (buf) { |
1752 | buflen -= MIN(buflen, GUARD_BUFSIZE); | 1752 | buflen -= MIN(buflen, GUARD_BUFSIZE); |
1753 | 1753 | ||
1754 | STORAGE_ALIGN_BUFFER(buf, buflen); | 1754 | STORAGE_ALIGN_BUFFER(buf, buflen); |
1755 | 1755 | ||
1756 | if (!buf || !buflen) | 1756 | if (!buf || !buflen) |