diff options
author | Tiago Cunha <tcunha@gmx.com> | 2012-01-21 19:38:26 +0000 |
---|---|---|
committer | Tiago Cunha <tcunha@gmx.com> | 2012-01-21 19:38:26 +0000 |
commit | a3c1b730c93a648579f68c353573f4319e1219a7 (patch) | |
tree | 0df01ddb40ee315383edf072f74c35c41990246e /cmd-list-keys.c | |
parent | a7b0b30bdd73f3a8d513fc69daf593174ee03145 (diff) | |
download | rtmux-a3c1b730c93a648579f68c353573f4319e1219a7.tar.gz rtmux-a3c1b730c93a648579f68c353573f4319e1219a7.tar.bz2 rtmux-a3c1b730c93a648579f68c353573f4319e1219a7.zip |
Sync OpenBSD patchset 1008:
Use RB trees not SPLAY.
Diffstat (limited to 'cmd-list-keys.c')
-rw-r--r-- | cmd-list-keys.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cmd-list-keys.c b/cmd-list-keys.c index c76389ad..40543c9f 100644 --- a/cmd-list-keys.c +++ b/cmd-list-keys.c @@ -55,7 +55,7 @@ cmd_list_keys_exec(struct cmd *self, struct cmd_ctx *ctx) width = 0; - SPLAY_FOREACH(bd, key_bindings, &key_bindings) { + RB_FOREACH(bd, key_bindings, &key_bindings) { key = key_string_lookup_key(bd->key & ~KEYC_PREFIX); if (key == NULL) continue; @@ -72,7 +72,7 @@ cmd_list_keys_exec(struct cmd *self, struct cmd_ctx *ctx) width = keywidth; } - SPLAY_FOREACH(bd, key_bindings, &key_bindings) { + RB_FOREACH(bd, key_bindings, &key_bindings) { key = key_string_lookup_key(bd->key & ~KEYC_PREFIX); if (key == NULL) continue; @@ -116,7 +116,7 @@ cmd_list_keys_table(struct cmd *self, struct cmd_ctx *ctx) width = 0; any_mode = 0; - SPLAY_FOREACH(mbind, mode_key_tree, mtab->tree) { + RB_FOREACH(mbind, mode_key_tree, mtab->tree) { key = key_string_lookup_key(mbind->key); if (key == NULL) continue; @@ -129,7 +129,7 @@ cmd_list_keys_table(struct cmd *self, struct cmd_ctx *ctx) width = keywidth; } - SPLAY_FOREACH(mbind, mode_key_tree, mtab->tree) { + RB_FOREACH(mbind, mode_key_tree, mtab->tree) { key = key_string_lookup_key(mbind->key); if (key == NULL) continue; |