summaryrefslogtreecommitdiff
path: root/sys/arch/i386
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/i386
parent178b3485055aca748b4147efb3bd65e18a4f77a6 (diff)
Change a bunch of (<blah> *)0 to NULL.
ok beck@ deraadt@
Diffstat (limited to 'sys/arch/i386')
-rw-r--r--sys/arch/i386/i386/db_interface.c4
-rw-r--r--sys/arch/i386/stand/pxeboot/open.c12
2 files changed, 8 insertions, 8 deletions
diff --git a/sys/arch/i386/i386/db_interface.c b/sys/arch/i386/i386/db_interface.c
index 19694f7af76..16b3d258772 100644
--- a/sys/arch/i386/i386/db_interface.c
+++ b/sys/arch/i386/i386/db_interface.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: db_interface.c,v 1.32 2016/02/27 13:08:07 mpi Exp $ */
+/* $OpenBSD: db_interface.c,v 1.33 2016/03/14 23:08:05 krw Exp $ */
/* $NetBSD: db_interface.c,v 1.22 1996/05/03 19:42:00 christos Exp $ */
/*
@@ -334,7 +334,7 @@ struct db_command db_machine_command_table[] = {
#if NACPI > 0
{ "acpi", NULL, 0, db_acpi_cmds },
#endif /* NACPI > 0 */
- { (char *)0, }
+ { NULL, }
};
void
diff --git a/sys/arch/i386/stand/pxeboot/open.c b/sys/arch/i386/stand/pxeboot/open.c
index 3c91f3ab379..c7f90f38bb1 100644
--- a/sys/arch/i386/stand/pxeboot/open.c
+++ b/sys/arch/i386/stand/pxeboot/open.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: open.c,v 1.1 2004/03/19 13:48:19 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;
}