summaryrefslogtreecommitdiff
path: root/bin/ksh/vi.c
diff options
context:
space:
mode:
authorkstailey <kstailey@cvs.openbsd.org>1997-06-19 13:58:50 +0000
committerkstailey <kstailey@cvs.openbsd.org>1997-06-19 13:58:50 +0000
commitbf8005adcfb58b3ee760f1d617bbc31a94c84c52 (patch)
treeaa8605cd9b71bcd70c5bb79a75cbf3dc3a31643e /bin/ksh/vi.c
parentd70fd816bbcfe3ed69974e4c2a2dd94318c675c9 (diff)
back out
Diffstat (limited to 'bin/ksh/vi.c')
-rw-r--r--bin/ksh/vi.c8
1 files changed, 4 insertions, 4 deletions
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];