projects
/
paraslash.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0916e56
)
btr: Kill an unused variable.
author
Andre Noll
<maan@systemlinux.org>
Tue, 2 Mar 2010 05:54:18 +0000
(06:54 +0100)
committer
Andre Noll
<maan@systemlinux.org>
Tue, 2 Mar 2010 05:54:18 +0000
(06:54 +0100)
buffer_tree.c
patch
|
blob
|
history
diff --git
a/buffer_tree.c
b/buffer_tree.c
index
45650a2
..
9be5320
100644
(file)
--- a/
buffer_tree.c
+++ b/
buffer_tree.c
@@
-854,7
+854,7
@@
static void merge_input_pool(struct btr_node *btrn, size_t dest_size)
struct btr_buffer_reference *br, *wbr = NULL;
int num_refs; /* including wrap buffer */
char *buf, *buf1 = NULL, *buf2 = NULL;
struct btr_buffer_reference *br, *wbr = NULL;
int num_refs; /* including wrap buffer */
char *buf, *buf1 = NULL, *buf2 = NULL;
- size_t sz, sz1 = 0, sz2 = 0
, wsz
;
+ size_t sz, sz1 = 0, sz2 = 0;
br = get_first_input_br(btrn);
if (!br || br_available_bytes(br) >= dest_size)
br = get_first_input_br(btrn);
if (!br || br_available_bytes(br) >= dest_size)
@@
-922,7
+922,6
@@
next:
* We already have a wrap buffer, but it is too small. It might be
* partially used.
*/
* We already have a wrap buffer, but it is too small. It might be
* partially used.
*/
- wsz = br_available_bytes(wbr);
if (wbr->wrap_count == sz1 && wbr->btrb->size >= sz1 + sz2) /* nothing we can do about it */
return;
sz = sz1 + sz2 - wbr->btrb->size; /* amount of new data */
if (wbr->wrap_count == sz1 && wbr->btrb->size >= sz1 + sz2) /* nothing we can do about it */
return;
sz = sz1 + sz2 - wbr->btrb->size; /* amount of new data */