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/lex.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'bin/pdksh/lex.c') diff --git a/bin/pdksh/lex.c b/bin/pdksh/lex.c index 3b8a3dd63ee..b342f73709f 100644 --- a/bin/pdksh/lex.c +++ b/bin/pdksh/lex.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lex.c,v 1.5 1996/11/21 07:59:32 downsj Exp $ */ +/* $OpenBSD: lex.c,v 1.6 1997/06/18 22:42:38 kstailey Exp $ */ /* * lexical analysis and source input @@ -574,8 +574,8 @@ Done: ungetsc(c2); } - iop->name = (char *) 0; - iop->delim = (char *) 0; + iop->name = NULL; + iop->delim = NULL; yylval.iop = iop; return REDIR; } @@ -1011,7 +1011,7 @@ getsc_line(s) #endif /* HISTORY */ } if (interactive) - set_prompt(PS2, (Source *) 0); + set_prompt(PS2, NULL); } void @@ -1035,8 +1035,8 @@ set_prompt(to, s) Area *saved_atemp; ps1 = str_val(global("PS1")); - shf = shf_sopen((char *) 0, strlen(ps1) * 2, - SHF_WR | SHF_DYNAMIC, (struct shf *) 0); + shf = shf_sopen(NULL, strlen(ps1) * 2, + SHF_WR | SHF_DYNAMIC, NULL); while (*ps1) { if (*ps1 != '!' || *++ps1 == '!') shf_putchar(*ps1++, shf); -- cgit v1.2.3