From: schwarze Date: Sat, 13 Jan 2018 02:06:54 +0000 (+0000) Subject: remove unused parameter from the static function print_expansions(); X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=b43024c2aee3047412587ba1d85da711077eaab1;p=openbsd remove unused parameter from the static function print_expansions(); patch from Michael W. Bombardieri ; OK tb@ --- diff --git a/bin/ksh/vi.c b/bin/ksh/vi.c index 0bf16919fd7..ff677752170 100644 --- a/bin/ksh/vi.c +++ b/bin/ksh/vi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vi.c,v 1.53 2018/01/06 16:28:58 millert Exp $ */ +/* $OpenBSD: vi.c,v 1.54 2018/01/13 02:06:54 schwarze Exp $ */ /* * vi command editing @@ -61,7 +61,7 @@ static void display(char *, char *, int); static void ed_mov_opt(int, char *); static int expand_word(int); static int complete_word(int, int); -static int print_expansions(struct edstate *, int); +static int print_expansions(struct edstate *); static int char_len(int); static void x_vi_zotc(int); static void vi_pprompt(int); @@ -648,7 +648,7 @@ vi_insert(int ch) break; case CTRL('e'): - print_expansions(es, 0); + print_expansions(es); break; case CTRL('i'): @@ -1125,7 +1125,7 @@ vi_cmd(int argcnt, const char *cmd) case '=': /* at&t ksh */ case CTRL('e'): /* Nonstandard vi/ksh */ - print_expansions(es, 1); + print_expansions(es); break; @@ -2052,7 +2052,7 @@ complete_word(int command, int count) /* Undo previous completion */ if (command == 0 && expanded == COMPLETE && buf) { - print_expansions(buf, 0); + print_expansions(buf); expanded = PRINT; return 0; } @@ -2143,7 +2143,7 @@ complete_word(int command, int count) } static int -print_expansions(struct edstate *e, int command) +print_expansions(struct edstate *e) { int nwords; int start, end;