summaryrefslogtreecommitdiff
path: root/bin/ksh/io.c
diff options
context:
space:
mode:
authorkstailey <kstailey@cvs.openbsd.org>1997-06-19 13:58:50 +0000
committerkstailey <kstailey@cvs.openbsd.org>1997-06-19 13:58:50 +0000
commitbf8005adcfb58b3ee760f1d617bbc31a94c84c52 (patch)
treeaa8605cd9b71bcd70c5bb79a75cbf3dc3a31643e /bin/ksh/io.c
parentd70fd816bbcfe3ed69974e4c2a2dd94318c675c9 (diff)
back out
Diffstat (limited to 'bin/ksh/io.c')
-rw-r--r--bin/ksh/io.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/ksh/io.c b/bin/ksh/io.c
index a1757df8875..4a2f1cc88e2 100644
--- a/bin/ksh/io.c
+++ b/bin/ksh/io.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: io.c,v 1.3 1997/06/18 22:42:36 kstailey Exp $ */
+/* $OpenBSD: io.c,v 1.4 1997/06/19 13:58:42 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 = NULL;
+ builtin_argv0 = (char *) 0;
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 = NULL;
+ tp->shf = (struct shf *) 0;
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, NULL);
+ tp->shf = shf_fdopen(fd, SHF_WR, (struct shf *) 0);
break;
}
if (errno != EINTR