diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2007-03-22 16:55:32 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2007-03-22 16:55:32 +0000 |
commit | bfcfcc95f91a9ef756b3184426381561b7f4dc23 (patch) | |
tree | 86156fd65b4c74f4b929cb5bcd06ed881f46f591 /sys/dev/pci/arc.c | |
parent | d0617786c492a05d286defedc41f1cac5a22411d (diff) |
split userland & kernel struct sensor/sensordev so that the addition
of new fields in the future is less disruptive. This is done similar
to how struct proc is handled for ps(1). ok jmc (man page changes)
tested fkr simon, and more suggestions from millert
Diffstat (limited to 'sys/dev/pci/arc.c')
-rw-r--r-- | sys/dev/pci/arc.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/dev/pci/arc.c b/sys/dev/pci/arc.c index b37b8d90710..0000231dbe2 100644 --- a/sys/dev/pci/arc.c +++ b/sys/dev/pci/arc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: arc.c,v 1.58 2007/02/20 17:06:23 thib Exp $ */ +/* $OpenBSD: arc.c,v 1.59 2007/03/22 16:55:31 deraadt Exp $ */ /* * Copyright (c) 2006 David Gwynne <dlg@openbsd.org> @@ -384,8 +384,8 @@ struct arc_softc { struct rwlock sc_lock; volatile int sc_talking; - struct sensor *sc_sensors; - struct sensordev sc_sensordev; + struct ksensor *sc_sensors; + struct ksensordev sc_sensordev; int sc_nsensors; }; #define DEVNAME(_s) ((_s)->sc_dev.dv_xname) @@ -1536,9 +1536,9 @@ arc_create_sensors(void *xsc, void *arg) } sc->sc_nsensors = bi.bi_novol; - sc->sc_sensors = malloc(sizeof(struct sensor) * sc->sc_nsensors, + sc->sc_sensors = malloc(sizeof(struct ksensor) * sc->sc_nsensors, M_DEVBUF, M_WAITOK); - bzero(sc->sc_sensors, sizeof(struct sensor) * sc->sc_nsensors); + bzero(sc->sc_sensors, sizeof(struct ksensor) * sc->sc_nsensors); strlcpy(sc->sc_sensordev.xname, DEVNAME(sc), sizeof(sc->sc_sensordev.xname)); |