From bf8005adcfb58b3ee760f1d617bbc31a94c84c52 Mon Sep 17 00:00:00 2001 From: kstailey Date: Thu, 19 Jun 1997 13:58:50 +0000 Subject: back out --- bin/ksh/vi.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'bin/ksh/vi.c') diff --git a/bin/ksh/vi.c b/bin/ksh/vi.c index 4d3f5803c7a..81950b224a3 100644 --- a/bin/ksh/vi.c +++ b/bin/ksh/vi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vi.c,v 1.4 1997/06/18 22:42:49 kstailey Exp $ */ +/* $OpenBSD: vi.c,v 1.5 1997/06/19 13:58:49 kstailey Exp $ */ /* * vi command editing @@ -1955,7 +1955,7 @@ expand_word(command) nwords = x_cf_glob(XCF_COMMAND_FILE|XCF_FULLPATH, es->cbuf, es->linelen, es->cursor, - &start, &end, &words, NULL); + &start, &end, &words, (int *) 0); if (nwords == 0) { vi_error(); return -1; @@ -2043,12 +2043,12 @@ complete_word(command, count) */ if (is_command) { match = words[count] - + x_basename(words[count], NULL); + + x_basename(words[count], (char *) 0); /* If more than one possible match, use full path */ for (i = 0; i < nwords; i++) if (i != count && FILECMP(words[i] - + x_basename(words[i], NULL), + + x_basename(words[i], (char *) 0), match) == 0) { match = words[count]; -- cgit v1.2.3