From d562eb482f3180dcd59a332edc91027ea3844d90 Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Fri, 8 Jan 2021 11:05:32 +0200 Subject: Improve use of types throughout. --- command.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'command.c') diff --git a/command.c b/command.c index ba5a0e58..d5bcd2aa 100644 --- a/command.c +++ b/command.c @@ -1703,7 +1703,7 @@ yyreduce: case 34: /* command: frame_cmd opt_integer */ #line 288 "command.y" { - if (cmdtab[cmd_idx].class == D_FRAME + if (cmdtab[cmd_idx].lex_class == D_FRAME && yyvsp[0] != NULL && yyvsp[0]->a_int < 0) yyerror(_("invalid frame number: %d"), yyvsp[0]->a_int); } @@ -2817,7 +2817,7 @@ again: add_history(h->line); #endif cmd_idx = repeat_idx; - return cmdtab[cmd_idx].class; /* repeat last command */ + return cmdtab[cmd_idx].lex_class; /* repeat last command */ } repeat_idx = -1; } @@ -2877,7 +2877,7 @@ again: arg->a_string = estrdup(lexptr_begin, lexend - lexptr_begin); append_cmdarg(arg); } - return cmdtab[cmd_idx].class; + return cmdtab[cmd_idx].lex_class; } else { yyerror(_("unknown command - `%.*s', try help"), toklen, tokstart); return '\n'; @@ -3138,7 +3138,7 @@ concat_args(CMDARG *arg, int count) static int find_command(const char *token, size_t toklen) { - char *name, *abrv; + const char *name, *abrv; int i, k; bool try_exact = true; int abrv_match = -1; -- cgit v1.2.3