summaryrefslogtreecommitdiff
path: root/rbtree.h
diff options
context:
space:
mode:
authorArvin Schnell <aschnell@suse.de>2013-01-30 14:50:26 -0800
committerDavid Sterba <dsterba@suse.cz>2013-02-19 11:15:30 +0100
commit0c38ff3ca4f481bbae74283fd00a56fbd938e4b2 (patch)
tree0cfb6ca9cf09a104237203bfba74eb52dc47f51c /rbtree.h
parent7d4dc89f96644c6f1b7efb5a3759bbee58f5b27e (diff)
downloadbtrfs-progs-0c38ff3ca4f481bbae74283fd00a56fbd938e4b2.tar.gz
btrfs-progs-0c38ff3ca4f481bbae74283fd00a56fbd938e4b2.tar.bz2
btrfs-progs-0c38ff3ca4f481bbae74283fd00a56fbd938e4b2.zip
btrfs-progs: make libbtrfs usable from C++
Please find attached a patch to make the new libbtrfs usable from C++ (at least for the parts snapper will likely need). Signed-off-by: Arvin Schnell <aschnell@suse.de> Signed-off-by: Mark Fasheh <mfasheh@suse.de>
Diffstat (limited to 'rbtree.h')
-rw-r--r--rbtree.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/rbtree.h b/rbtree.h
index bed054d4..edf12c82 100644
--- a/rbtree.h
+++ b/rbtree.h
@@ -145,7 +145,7 @@ extern struct rb_node *rb_first(struct rb_root *);
extern struct rb_node *rb_last(struct rb_root *);
/* Fast replacement of a single node without remove/rebalance/add/rebalance */
-extern void rb_replace_node(struct rb_node *victim, struct rb_node *new,
+extern void rb_replace_node(struct rb_node *victim, struct rb_node *xnew,
struct rb_root *root);
static inline void rb_link_node(struct rb_node * node, struct rb_node * parent,