=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/tmux/cmd-unbind-key.c,v retrieving revision 1.11 retrieving revision 1.12 diff -c -r1.11 -r1.12 *** src/usr.bin/tmux/cmd-unbind-key.c 2011/08/16 09:37:48 1.11 --- src/usr.bin/tmux/cmd-unbind-key.c 2012/01/21 11:12:13 1.12 *************** *** 1,4 **** ! /* $OpenBSD: cmd-unbind-key.c,v 1.11 2011/08/16 09:37:48 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott --- 1,4 ---- ! /* $OpenBSD: cmd-unbind-key.c,v 1.12 2012/01/21 11:12:13 nicm Exp $ */ /* * Copyright (c) 2007 Nicholas Marriott *************** *** 57,64 **** int key; if (args_has(args, 'a')) { ! while (!SPLAY_EMPTY(&key_bindings)) { ! bd = SPLAY_ROOT(&key_bindings); key_bindings_remove(bd->key); } return (0); --- 57,64 ---- int key; if (args_has(args, 'a')) { ! while (!RB_EMPTY(&key_bindings)) { ! bd = RB_ROOT(&key_bindings); key_bindings_remove(bd->key); } return (0); *************** *** 95,102 **** mtmp.key = key; mtmp.mode = !!args_has(args, 'c'); ! if ((mbind = SPLAY_FIND(mode_key_tree, mtab->tree, &mtmp)) != NULL) { ! SPLAY_REMOVE(mode_key_tree, mtab->tree, mbind); xfree(mbind); } return (0); --- 95,102 ---- mtmp.key = key; mtmp.mode = !!args_has(args, 'c'); ! if ((mbind = RB_FIND(mode_key_tree, mtab->tree, &mtmp)) != NULL) { ! RB_REMOVE(mode_key_tree, mtab->tree, mbind); xfree(mbind); } return (0);