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/ic/ami.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/ic/ami.c')
-rw-r--r-- | sys/dev/ic/ami.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ic/ami.c b/sys/dev/ic/ami.c index b28ff40d6b4..6650596dda8 100644 --- a/sys/dev/ic/ami.c +++ b/sys/dev/ic/ami.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ami.c,v 1.176 2007/01/27 05:09:51 dlg Exp $ */ +/* $OpenBSD: ami.c,v 1.177 2007/03/22 16:55:31 deraadt Exp $ */ /* * Copyright (c) 2001 Michael Shalayeff @@ -2442,11 +2442,11 @@ ami_create_sensors(struct ami_softc *sc) if (ssc == NULL) return (1); - sc->sc_sensors = malloc(sizeof(struct sensor) * sc->sc_nunits, + sc->sc_sensors = malloc(sizeof(struct ksensor) * sc->sc_nunits, M_DEVBUF, M_WAITOK); if (sc->sc_sensors == NULL) return (1); - bzero(sc->sc_sensors, sizeof(struct sensor) * sc->sc_nunits); + bzero(sc->sc_sensors, sizeof(struct ksensor) * sc->sc_nunits); strlcpy(sc->sc_sensordev.xname, DEVNAME(sc), sizeof(sc->sc_sensordev.xname)); |