]> git.tuebingen.mpg.de Git - paraslash.git/commit
btr_exec_up(): Also ask given node.
authorAndre Noll <maan@systemlinux.org>
Sun, 8 Apr 2012 19:31:10 +0000 (21:31 +0200)
committerAndre Noll <maan@systemlinux.org>
Sun, 8 Jul 2012 17:06:39 +0000 (17:06 +0000)
commit146316482306dc68ca4ecb4ff2658d2380a75338
treea11b9183e92b91c6d232059320307dee21b5968f
parent6d9c357ff64e799dfeacda6a176012de10c7f5c1
btr_exec_up(): Also ask given node.

At the moment, the buffer tree walk starts at the parent of the given
node. Users of the btr API can not execute a command for a node unless
it has at least one child.

This unnecessary restriction is removed in this commit by letting
the tree walk start at the given node rather than its parent.
This actually simplifies the code a bit.
buffer_tree.c