summaryrefslogtreecommitdiff
path: root/bin/pdksh/io.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/io.c
parente37d7f641aedb36d7e29530bb5d9c2fe398d1407 (diff)
(foo *)0 -> NULL
Diffstat (limited to 'bin/pdksh/io.c')
-rw-r--r--bin/pdksh/io.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/pdksh/io.c b/bin/pdksh/io.c
index a5bfe1569a9..a1757df8875 100644
--- a/bin/pdksh/io.c
+++ b/bin/pdksh/io.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: io.c,v 1.2 1996/08/19 20:08:51 downsj Exp $ */
+/* $OpenBSD: io.c,v 1.3 1997/06/18 22:42:36 kstailey Exp $ */
/*
* shell buffered IO and formatted output
@@ -93,7 +93,7 @@ bi_errorf(fmt, va_alist)
if ((builtin_flag & SPEC_BI)
|| (Flag(FPOSIX) && (builtin_flag & KEEPASN)))
{
- builtin_argv0 = (char *) 0;
+ builtin_argv0 = NULL;
unwind(LERROR);
}
}
@@ -441,7 +441,7 @@ maketemp(ap)
len = strlen(tmp) + 3 + 20 + 20 + 1;
tp = (struct temp *) alloc(sizeof(struct temp) + len, ap);
tp->name = path = (char *) &tp[1];
- tp->shf = (struct shf *) 0;
+ tp->shf = NULL;
while (1) {
/* Note that temp files need to fit 8.3 DOS limits */
shf_snprintf(path, len, "%s/sh%05u.%03x",
@@ -451,7 +451,7 @@ maketemp(ap)
*/
fd = open(path, O_RDWR|O_CREAT|O_EXCL|O_TRUNC, 0600);
if (fd >= 0) {
- tp->shf = shf_fdopen(fd, SHF_WR, (struct shf *) 0);
+ tp->shf = shf_fdopen(fd, SHF_WR, NULL);
break;
}
if (errno != EINTR