Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/thorpej-cfargs]: src/sys/dev/ic Correct the names of the arguments passe...
details: https://anonhg.NetBSD.org/src/rev/4ff0c15ba929
branches: thorpej-cfargs
changeset: 954086:4ff0c15ba929
user: thorpej <thorpej%NetBSD.org@localhost>
date: Sun Mar 28 20:30:14 2021 +0000
description:
Correct the names of the arguments passed to cac_rescan(), and update
a local variable to avoid a name collision. Also, no need to be explcit
about our interface attribute, since we carry only one.
diffstat:
sys/dev/ic/cac.c | 13 ++++++-------
1 files changed, 6 insertions(+), 7 deletions(-)
diffs (47 lines):
diff -r 14b90c22531a -r 4ff0c15ba929 sys/dev/ic/cac.c
--- a/sys/dev/ic/cac.c Sun Mar 28 20:25:44 2021 +0000
+++ b/sys/dev/ic/cac.c Sun Mar 28 20:30:14 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cac.c,v 1.61.10.2 2021/03/22 16:23:45 thorpej Exp $ */
+/* $NetBSD: cac.c,v 1.61.10.3 2021/03/28 20:30:14 thorpej Exp $ */
/*-
* Copyright (c) 2000, 2006, 2007 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cac.c,v 1.61.10.2 2021/03/22 16:23:45 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cac.c,v 1.61.10.3 2021/03/28 20:30:14 thorpej Exp $");
#if defined(_KERNEL_OPT)
#include "bio.h"
@@ -217,11 +217,11 @@
}
int
-cac_rescan(device_t self, const char *attr, const int *flags)
+cac_rescan(device_t self, const char *attr, const int *locs)
{
struct cac_softc *sc;
struct cac_attach_args caca;
- int locs[CACCF_NLOCS];
+ int mlocs[CACCF_NLOCS];
int i;
sc = device_private(self);
@@ -230,12 +230,11 @@
continue;
caca.caca_unit = i;
- locs[CACCF_UNIT] = i;
+ mlocs[CACCF_UNIT] = i;
if (config_found(self, &caca, cac_print,
CFARG_SUBMATCH, config_stdsubmatch,
- CFARG_IATTR, attr,
- CFARG_LOCATORS, locs,
+ CFARG_LOCATORS, mlocs,
CFARG_EOL) != NULL)
sc->sc_unitmask |= 1 << i;
}
Home |
Main Index |
Thread Index |
Old Index