diff options
author | Thomas Adam <thomas@xteddy.org> | 2019-05-12 09:02:28 +0100 |
---|---|---|
committer | Thomas Adam <thomas@xteddy.org> | 2019-05-12 09:02:28 +0100 |
commit | 677bb168a9d2b53df70beb886ee92b078237ef87 (patch) | |
tree | 516e335a72e0b604b3479a35e9c91b7bea77dd36 /menu.c | |
parent | 50d1d04913773762459ba02ef473261459c8e8a9 (diff) | |
parent | c91323e4d6a4bd5f2c646e315d57ead1a7c568ea (diff) | |
download | rtmux-677bb168a9d2b53df70beb886ee92b078237ef87.tar.gz rtmux-677bb168a9d2b53df70beb886ee92b078237ef87.tar.bz2 rtmux-677bb168a9d2b53df70beb886ee92b078237ef87.zip |
Merge branch 'obsd-master'
Diffstat (limited to 'menu.c')
-rw-r--r-- | menu.c | 20 |
1 files changed, 2 insertions, 18 deletions
@@ -103,24 +103,8 @@ menu_parse_item(struct menu *menu, const char *s, struct client *c, } struct menu * -menu_create_from_items(struct menu_item *items, u_int count, struct client *c, - struct cmd_find_state *fs, const char *title) -{ - struct menu *menu; - u_int i; - - menu = xcalloc(1, sizeof *menu); - menu->title = xstrdup(title); - - for (i = 0; i < count; i++) - menu_add_item(menu, &items[i], c, fs); - - return (menu); -} - -struct menu * -menu_create_from_string(const char *s, struct client *c, - struct cmd_find_state *fs, const char *title) +menu_create(const char *s, struct client *c, struct cmd_find_state *fs, + const char *title) { struct menu *menu; char *copy, *string, *next; |