summaryrefslogtreecommitdiff
path: root/bin/ksh/emacs.c
diff options
context:
space:
mode:
Diffstat (limited to 'bin/ksh/emacs.c')
-rw-r--r--bin/ksh/emacs.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/bin/ksh/emacs.c b/bin/ksh/emacs.c
index f572f87b5f6..32d9c379bd7 100644
--- a/bin/ksh/emacs.c
+++ b/bin/ksh/emacs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: emacs.c,v 1.2 1996/08/19 20:08:48 downsj Exp $ */
+/* $OpenBSD: emacs.c,v 1.3 1997/06/18 22:42:32 kstailey Exp $ */
/*
* Emacs-like command line editing and history
@@ -339,7 +339,7 @@ x_emacs(buf, len)
xlp_valid = TRUE;
xmp = NULL;
x_curprefix = 0;
- macroptr = (char *) 0;
+ macroptr = NULL;
x_histp = histptr + 1;
x_last_command = XFUNC_error;
@@ -422,7 +422,7 @@ x_ins_string(c)
macroptr = x_atab[c>>8][c & CHARMASK];
if (macroptr && !*macroptr) {
/* XXX bell? */
- macroptr = (char *) 0;
+ macroptr = NULL;
}
return KSTD;
}
@@ -1053,7 +1053,7 @@ x_redraw(limit)
if (xbp == xbuf)
{
pprompt(prompt + prompt_skip, 0);
- x_col = promptlen(prompt, (const char **) 0);
+ x_col = promptlen(prompt, NULL);
}
x_displen = xx_cols - 2 - x_col;
xlp_valid = FALSE;
@@ -1736,7 +1736,7 @@ do_complete(flags, type)
int is_command;
int do_glob = 1;
Comp_type t = type;
- char *comp_word = (char *) 0;
+ char *comp_word = NULL;
if (type == CT_COMPLIST) {
do_glob = 0;
@@ -1868,7 +1868,7 @@ x_e_getc()
if (macroptr) {
c = *macroptr++;
if (!*macroptr)
- macroptr = (char *) 0;
+ macroptr = NULL;
} else
c = x_getc();
}