Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/arm/sunxi Fix regression introduced in r1.2
details: https://anonhg.NetBSD.org/src/rev/30f5a1f4b1b6
branches: trunk
changeset: 358136:30f5a1f4b1b6
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Wed Dec 13 21:37:10 2017 +0000
description:
Fix regression introduced in r1.2
diffstat:
sys/arch/arm/sunxi/sunxi_thermal.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (29 lines):
diff -r 9b8cfa0f386f -r 30f5a1f4b1b6 sys/arch/arm/sunxi/sunxi_thermal.c
--- a/sys/arch/arm/sunxi/sunxi_thermal.c Wed Dec 13 21:11:27 2017 +0000
+++ b/sys/arch/arm/sunxi/sunxi_thermal.c Wed Dec 13 21:37:10 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sunxi_thermal.c,v 1.3 2017/11/01 05:42:32 kre Exp $ */
+/* $NetBSD: sunxi_thermal.c,v 1.4 2017/12/13 21:37:10 jmcneill Exp $ */
/*-
* Copyright (c) 2016-2017 Jared McNeill <jmcneill%invisible.ca@localhost>
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sunxi_thermal.c,v 1.3 2017/11/01 05:42:32 kre Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sunxi_thermal.c,v 1.4 2017/12/13 21:37:10 jmcneill Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -552,8 +552,8 @@
sc->data[i].private = i;
sc->data[i].units = ENVSYS_STEMP;
sc->data[i].state = ENVSYS_SINVALID;
- strlcpy(sc->data[1].desc, sc->conf->sensors[i].desc,
- sizeof(sc->data[1].desc));
+ strlcpy(sc->data[i].desc, sc->conf->sensors[i].desc,
+ sizeof(sc->data[i].desc));
sysmon_envsys_sensor_attach(sc->sme, &sc->data[i]);
}
sysmon_envsys_register(sc->sme);
Home |
Main Index |
Thread Index |
Old Index