Constify struct cfattach, not struct cfdriver
authorjmatthew <jmatthew@openbsd.org>
Sat, 12 Mar 2022 06:54:05 +0000 (06:54 +0000)
committerjmatthew <jmatthew@openbsd.org>
Sat, 12 Mar 2022 06:54:05 +0000 (06:54 +0000)
sys/dev/pci/if_rge.c

index f7386f4..41b09cd 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: if_rge.c,v 1.17 2022/03/11 18:00:48 mpi Exp $ */
+/*     $OpenBSD: if_rge.c,v 1.18 2022/03/12 06:54:05 jmatthew Exp $    */
 
 /*
  * Copyright (c) 2019, 2020 Kevin Lo <kevlo@openbsd.org>
@@ -130,11 +130,11 @@ static const struct {
        RTL8125_MAC_CFG5_MCU
 };
 
-struct cfattach rge_ca = {
+const struct cfattach rge_ca = {
        sizeof(struct rge_softc), rge_match, rge_attach, NULL, rge_activate
 };
 
-const struct cfdriver rge_cd = {
+struct cfdriver rge_cd = {
        NULL, "rge", DV_IFNET
 };