alias.c: Remove unused variables in pmatch_cmd_alias(), pmatch_assign_alias() and do_stack_alias().

git-svn-id: svn://svn.code.sf.net/p/bitchx/code/trunk@478 13b04d17-f746-0410-82c6-800466cd88b0
This commit is contained in:
Kevin Easton
2013-11-18 13:13:26 +00:00
parent f22dc54b13
commit b300961524

View File

@@ -1782,11 +1782,9 @@ char ** glob_assign_alias (char *name, int *howmany)
char ** pmatch_cmd_alias (char *name, int *howmany) char ** pmatch_cmd_alias (char *name, int *howmany)
{ {
int cnt; int cnt;
int len;
char **matches = NULL; char **matches = NULL;
int matches_size = 5; int matches_size = 5;
len = strlen(name);
*howmany = 0; *howmany = 0;
RESIZE(matches, char *, matches_size); RESIZE(matches, char *, matches_size);
@@ -1818,11 +1816,9 @@ char ** pmatch_cmd_alias (char *name, int *howmany)
char ** pmatch_assign_alias (char *name, int *howmany) char ** pmatch_assign_alias (char *name, int *howmany)
{ {
int cnt; int cnt;
int len;
char **matches = NULL; char **matches = NULL;
int matches_size = 5; int matches_size = 5;
len = strlen(name);
*howmany = 0; *howmany = 0;
RESIZE(matches, char *, matches_size); RESIZE(matches, char *, matches_size);
@@ -2387,19 +2383,16 @@ void do_stack_alias (int type, char *args, int which)
AliasStack *aptr, **aptrptr; AliasStack *aptr, **aptrptr;
Alias *alptr; Alias *alptr;
int cnt; int cnt;
int my_which = 0;
if (which == STACK_DO_ALIAS) if (which == STACK_DO_ALIAS)
{ {
name = "ALIAS"; name = "ALIAS";
aptrptr = &alias_stack; aptrptr = &alias_stack;
my_which = COMMAND_ALIAS;
} }
else else
{ {
name = "ASSIGN"; name = "ASSIGN";
aptrptr = &assign_stack; aptrptr = &assign_stack;
my_which = VAR_ALIAS;
} }
if (!*aptrptr && (type == STACK_POP || type == STACK_LIST)) if (!*aptrptr && (type == STACK_POP || type == STACK_LIST))