diff options
author | kstailey <kstailey@cvs.openbsd.org> | 1997-06-18 22:42:50 +0000 |
---|---|---|
committer | kstailey <kstailey@cvs.openbsd.org> | 1997-06-18 22:42:50 +0000 |
commit | c8708ed93617f5d278f4f7faf294a6e7c57227df (patch) | |
tree | 83832809b6ff198d789d720827ee338c50df8b37 /bin/ksh/vi.c | |
parent | e37d7f641aedb36d7e29530bb5d9c2fe398d1407 (diff) |
(foo *)0 -> NULL
Diffstat (limited to 'bin/ksh/vi.c')
-rw-r--r-- | bin/ksh/vi.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/ksh/vi.c b/bin/ksh/vi.c index 4410276a68e..4d3f5803c7a 100644 --- a/bin/ksh/vi.c +++ b/bin/ksh/vi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vi.c,v 1.3 1996/11/21 07:59:37 downsj Exp $ */ +/* $OpenBSD: vi.c,v 1.4 1997/06/18 22:42: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, (int *) 0); + &start, &end, &words, NULL); 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], (char *) 0); + + x_basename(words[count], NULL); /* 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], (char *) 0), + + x_basename(words[i], NULL), match) == 0) { match = words[count]; |