summaryrefslogtreecommitdiff
path: root/bin/pdksh/emacs.c
diff options
context:
space:
mode:
authorkstailey <kstailey@cvs.openbsd.org>1997-06-18 22:42:50 +0000
committerkstailey <kstailey@cvs.openbsd.org>1997-06-18 22:42:50 +0000
commitc8708ed93617f5d278f4f7faf294a6e7c57227df (patch)
tree83832809b6ff198d789d720827ee338c50df8b37 /bin/pdksh/emacs.c
parente37d7f641aedb36d7e29530bb5d9c2fe398d1407 (diff)
(foo *)0 -> NULL
Diffstat (limited to 'bin/pdksh/emacs.c')
-rw-r--r--bin/pdksh/emacs.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/bin/pdksh/emacs.c b/bin/pdksh/emacs.c
index f572f87b5f6..32d9c379bd7 100644
--- a/bin/pdksh/emacs.c
+++ b/bin/pdksh/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();
}