summaryrefslogtreecommitdiff
path: root/sys/arch/amd64/stand
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2016-03-14 23:08:07 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2016-03-14 23:08:07 +0000
commitf779382c98d99e6d7457e2c790d177db942b5af3 (patch)
treed934e1330cc5a274507d31acd79e0912bd7753c0 /sys/arch/amd64/stand
parent178b3485055aca748b4147efb3bd65e18a4f77a6 (diff)
Change a bunch of (<blah> *)0 to NULL.
ok beck@ deraadt@
Diffstat (limited to 'sys/arch/amd64/stand')
-rw-r--r--sys/arch/amd64/stand/pxeboot/open.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/arch/amd64/stand/pxeboot/open.c b/sys/arch/amd64/stand/pxeboot/open.c
index 02c7f2dd8a6..c7f90f38bb1 100644
--- a/sys/arch/amd64/stand/pxeboot/open.c
+++ b/sys/arch/amd64/stand/pxeboot/open.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: open.c,v 1.1 2004/03/21 21:37:41 tom Exp $ */
+/* $OpenBSD: open.c,v 1.2 2016/03/14 23:08:05 krw Exp $ */
/* $NetBSD: open.c,v 1.12 1996/09/30 16:01:21 ws Exp $ */
/*-
@@ -92,16 +92,16 @@ fnd:
* Convert open mode (0,1,2) to F_READ, F_WRITE.
*/
f->f_flags = mode + 1;
- f->f_dev = (struct devsw *)0;
- f->f_ops = (struct fs_ops *)0;
- file = (char *)0;
+ f->f_dev = NULL;
+ f->f_ops = NULL;
+ file = NULL;
error = devopen(f, fname, &file);
if (error ||
- (((f->f_flags & F_NODEV) == 0) && f->f_dev == (struct devsw *)0))
+ (((f->f_flags & F_NODEV) == 0) && f->f_dev == NULL))
goto err;
/* see if we opened a raw device; otherwise, 'file' is the file name. */
- if (file == (char *)0 || *file == '\0') {
+ if (file == NULL || *file == '\0') {
f->f_flags |= F_RAW;
return fd;
}