From c8708ed93617f5d278f4f7faf294a6e7c57227df Mon Sep 17 00:00:00 2001 From: kstailey Date: Wed, 18 Jun 1997 22:42:50 +0000 Subject: (foo *)0 -> NULL --- bin/pdksh/emacs.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'bin/pdksh/emacs.c') 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(); } -- cgit v1.2.3