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/pdksh/lex.c | |
parent | e37d7f641aedb36d7e29530bb5d9c2fe398d1407 (diff) |
(foo *)0 -> NULL
Diffstat (limited to 'bin/pdksh/lex.c')
-rw-r--r-- | bin/pdksh/lex.c | 12 |
1 files changed, 6 insertions, 6 deletions
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); |