diff options
author | 2004-01-12 14:10:53 +0000 | |
---|---|---|
committer | 2004-01-12 14:10:53 +0000 | |
commit | 71ffed009fd22656620b8de09a1090e285b599ff (patch) | |
tree | 3974d64aebeb0ff484d5cd55b6c273502eab09ff /sys/dev/isa/it.c | |
parent | Nexthop announcement fixup. There are different rules for ibgp and ebgp. (diff) | |
download | wireguard-openbsd-71ffed009fd22656620b8de09a1090e285b599ff.tar.xz wireguard-openbsd-71ffed009fd22656620b8de09a1090e285b599ff.zip |
Move sensors externs to sys/sensors.h and introduce a macro
SENSOR_ADD to hide all operations with these externs.
ok markus@
Diffstat (limited to 'sys/dev/isa/it.c')
-rw-r--r-- | sys/dev/isa/it.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/dev/isa/it.c b/sys/dev/isa/it.c index 2997649bfcd..21093327eac 100644 --- a/sys/dev/isa/it.c +++ b/sys/dev/isa/it.c @@ -1,4 +1,4 @@ -/* $OpenBSD: it.c,v 1.4 2003/11/05 20:57:10 grange Exp $ */ +/* $OpenBSD: it.c,v 1.5 2004/01/12 14:10:53 grange Exp $ */ /* * Copyright (c) 2003 Julien Bordet <zejames@greyhats.org> @@ -122,8 +122,6 @@ it_attach(struct device *parent, struct device *self, void *aux) struct isa_attach_args *ia = aux; int i; u_int8_t cr; - extern int nsensors; - extern struct sensors_head sensors; iobase = ia->ipa_io[0].base; iot = sc->it_iot = ia->ia_iot; @@ -161,8 +159,7 @@ it_attach(struct device *parent, struct device *self, void *aux) for (i = 0; i < sc->numsensors; ++i) { strlcpy(sc->sensors[i].device, sc->sc_dev.dv_xname, sizeof(sc->sensors[i].device)); - sc->sensors[i].num = nsensors++; - SLIST_INSERT_HEAD(&sensors, &sc->sensors[i], list); + SENSOR_ADD(&sc->sensors[i]); } timeout_set(&it_timeout, it_refresh, sc); |