diff options
author | sabetts <sabetts> | 2002-01-26 23:51:54 +0000 |
---|---|---|
committer | sabetts <sabetts> | 2002-01-26 23:51:54 +0000 |
commit | 8595eca7d51f3d1b0d205c117fdb1dc7ea14f765 (patch) | |
tree | f39ac8317f1a0925eb2938348add5480f5e7c312 /src/actions.c | |
parent | 17f8b39f56521459d6debf30908c25613decec3f (diff) | |
download | ratpoison-8595eca7d51f3d1b0d205c117fdb1dc7ea14f765.zip |
(alias_t): rename data structure from cmd_alias to
avoid a name clash with the function cmd_alias. Dependant code
updated.
Diffstat (limited to 'src/actions.c')
-rw-r--r-- | src/actions.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/actions.c b/src/actions.c index b7f7a19..e0d4188 100644 --- a/src/actions.c +++ b/src/actions.c @@ -117,13 +117,13 @@ static user_command user_commands[] = #endif {0, 0, 0} }; -struct cmd_alias +typedef struct { char *name; char *alias; -}; +} alias_t; -static struct cmd_alias *alias_list; +static alias_t *alias_list; static int alias_list_size; static int alias_list_last; @@ -264,7 +264,7 @@ initialize_default_keybindings (void) /* Initialive the alias list. */ alias_list_size = 5; alias_list_last = 0; - alias_list = xmalloc (sizeof (cmd_alias) * alias_list_size); + alias_list = xmalloc (sizeof (alias_t) * alias_list_size); prefix_key.sym = KEY_PREFIX; prefix_key.state = MODIFIER_PREFIX; @@ -2415,7 +2415,7 @@ cmd_alias (int interactive, void *data) if (alias_list_last >= alias_list_size) { alias_list_size *= 2; - alias_list = xrealloc (alias_list, sizeof (cmd_alias) * alias_list_size); + alias_list = xrealloc (alias_list, sizeof (alias_t) * alias_list_size); } alias_list[alias_list_last].name = xstrdup (name); |