From 990261acc90a78c5504683375ad39579ed2c5bc5 Mon Sep 17 00:00:00 2001 From: mpi Date: Fri, 5 Nov 2021 11:38:51 +0000 Subject: [PATCH] Constify struct cfattach. --- sys/dev/usb/if_bwfm_usb.c | 4 ++-- sys/dev/usb/if_urndis.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/dev/usb/if_bwfm_usb.c b/sys/dev/usb/if_bwfm_usb.c index 5df615156f0..d627d937268 100644 --- a/sys/dev/usb/if_bwfm_usb.c +++ b/sys/dev/usb/if_bwfm_usb.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_bwfm_usb.c,v 1.19 2020/07/31 10:49:32 mglocker Exp $ */ +/* $OpenBSD: if_bwfm_usb.c,v 1.20 2021/11/05 11:38:51 mpi Exp $ */ /* * Copyright (c) 2010-2016 Broadcom Corporation * Copyright (c) 2016,2017 Patrick Wildt @@ -216,7 +216,7 @@ struct bwfm_bus_ops bwfm_usb_bus_ops = { .bs_txctl = bwfm_usb_txctl, }; -struct cfattach bwfm_usb_ca = { +const struct cfattach bwfm_usb_ca = { sizeof(struct bwfm_usb_softc), bwfm_usb_match, bwfm_usb_attach, diff --git a/sys/dev/usb/if_urndis.c b/sys/dev/usb/if_urndis.c index a019d34fd19..551197fbfc3 100644 --- a/sys/dev/usb/if_urndis.c +++ b/sys/dev/usb/if_urndis.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_urndis.c,v 1.72 2020/07/31 10:49:33 mglocker Exp $ */ +/* $OpenBSD: if_urndis.c,v 1.73 2021/11/05 11:38:52 mpi Exp $ */ /* * Copyright (c) 2010 Jonathan Armani @@ -118,7 +118,7 @@ struct cfdriver urndis_cd = { NULL, "urndis", DV_IFNET }; -struct cfattach urndis_ca = { +const struct cfattach urndis_ca = { sizeof(struct urndis_softc), urndis_match, urndis_attach, urndis_detach }; -- 2.20.1