summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorDave Voutila <dv@cvs.openbsd.org>2023-07-28 16:54:49 +0000
committerDave Voutila <dv@cvs.openbsd.org>2023-07-28 16:54:49 +0000
commit2c64ec2caa30aa8f58fd904c88a5b6d388590ffb (patch)
treefc71f138260d3f466533907462ae16fcd0e9743c /sys
parentc6d7ecbc86ab6bacf26fdba96ac20a7732cf10fc (diff)
Initialize handlers with NULL, not 0.
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/pv/if_vio.c4
-rw-r--r--sys/dev/pv/vioblk.c4
-rw-r--r--sys/dev/pv/viocon.c4
-rw-r--r--sys/dev/pv/viornd.c4
4 files changed, 8 insertions, 8 deletions
diff --git a/sys/dev/pv/if_vio.c b/sys/dev/pv/if_vio.c
index b926725a85d..28df941e061 100644
--- a/sys/dev/pv/if_vio.c
+++ b/sys/dev/pv/if_vio.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_vio.c,v 1.24 2023/07/03 07:40:52 kn Exp $ */
+/* $OpenBSD: if_vio.c,v 1.25 2023/07/28 16:54:48 dv Exp $ */
/*
* Copyright (c) 2012 Stefan Fritsch, Alexander Fiveg.
@@ -529,7 +529,7 @@ vio_attach(struct device *parent, struct device *self, void *aux)
vsc->sc_child = self;
vsc->sc_ipl = IPL_NET;
vsc->sc_vqs = &sc->sc_vq[0];
- vsc->sc_config_change = 0;
+ vsc->sc_config_change = NULL;
vsc->sc_driver_features = VIRTIO_NET_F_MAC | VIRTIO_NET_F_STATUS |
VIRTIO_NET_F_CTRL_VQ | VIRTIO_NET_F_CTRL_RX |
VIRTIO_NET_F_MRG_RXBUF | VIRTIO_NET_F_CSUM |
diff --git a/sys/dev/pv/vioblk.c b/sys/dev/pv/vioblk.c
index 2a8d2677848..05ecc756528 100644
--- a/sys/dev/pv/vioblk.c
+++ b/sys/dev/pv/vioblk.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vioblk.c,v 1.36 2023/05/29 08:13:35 sf Exp $ */
+/* $OpenBSD: vioblk.c,v 1.37 2023/07/28 16:54:48 dv Exp $ */
/*
* Copyright (c) 2012 Stefan Fritsch.
@@ -174,7 +174,7 @@ vioblk_attach(struct device *parent, struct device *self, void *aux)
vsc->sc_vqs = &sc->sc_vq[0];
vsc->sc_nvqs = 1;
- vsc->sc_config_change = 0;
+ vsc->sc_config_change = NULL;
if (vsc->sc_child)
panic("already attached to something else");
vsc->sc_child = self;
diff --git a/sys/dev/pv/viocon.c b/sys/dev/pv/viocon.c
index 4d154c34bf7..313d3acf73a 100644
--- a/sys/dev/pv/viocon.c
+++ b/sys/dev/pv/viocon.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: viocon.c,v 1.9 2023/05/29 08:13:35 sf Exp $ */
+/* $OpenBSD: viocon.c,v 1.10 2023/07/28 16:54:48 dv Exp $ */
/*
* Copyright (c) 2013-2015 Stefan Fritsch <sf@sfritsch.de>
@@ -180,7 +180,7 @@ viocon_attach(struct device *parent, struct device *self, void *aux)
panic("already attached to something else");
vsc->sc_child = self;
vsc->sc_ipl = IPL_TTY;
- vsc->sc_config_change = 0;
+ vsc->sc_config_change = NULL;
sc->sc_virtio = vsc;
sc->sc_max_ports = maxports;
diff --git a/sys/dev/pv/viornd.c b/sys/dev/pv/viornd.c
index eb129743be7..5f5dfac75e6 100644
--- a/sys/dev/pv/viornd.c
+++ b/sys/dev/pv/viornd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: viornd.c,v 1.6 2023/05/29 08:13:35 sf Exp $ */
+/* $OpenBSD: viornd.c,v 1.7 2023/07/28 16:54:48 dv Exp $ */
/*
* Copyright (c) 2014 Stefan Fritsch <sf@sfritsch.de>
@@ -88,7 +88,7 @@ viornd_attach(struct device *parent, struct device *self, void *aux)
vsc->sc_vqs = &sc->sc_vq;
vsc->sc_nvqs = 1;
- vsc->sc_config_change = 0;
+ vsc->sc_config_change = NULL;
if (vsc->sc_child != NULL)
panic("already attached to something else");
vsc->sc_child = self;