diff --git a/sys/dev/sysmon/sysmon_envsys.c b/sys/dev/sysmon/sysmon_envsys.c index 53198b7f8669..cfb08f301ced 100644 --- a/sys/dev/sysmon/sysmon_envsys.c +++ b/sys/dev/sysmon/sysmon_envsys.c @@ -1,4 +1,4 @@ -/* $NetBSD: sysmon_envsys.c,v 1.102 2010/03/27 13:23:18 pgoyette Exp $ */ +/* $NetBSD: sysmon_envsys.c,v 1.103 2010/03/27 13:34:16 pgoyette Exp $ */ /*- * Copyright (c) 2007, 2008 Juan Romero Pardines. @@ -64,7 +64,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: sysmon_envsys.c,v 1.102 2010/03/27 13:23:18 pgoyette Exp $"); +__KERNEL_RCSID(0, "$NetBSD: sysmon_envsys.c,v 1.103 2010/03/27 13:34:16 pgoyette Exp $"); #include #include @@ -2010,9 +2010,9 @@ out: * device's sensors are skipped. */ void -sysmon_envsys_foreach_sensor(bool(*func)(struct sysmon_envsys *, - envsys_data_t *, void*), void *arg, - bool refresh) +sysmon_envsys_foreach_sensor(bool(*func)(const struct sysmon_envsys *, + const envsys_data_t *, void*), + void *arg, bool refresh) { struct sysmon_envsys *sme; envsys_data_t *sensor; diff --git a/sys/dev/sysmon/sysmonvar.h b/sys/dev/sysmon/sysmonvar.h index 298c9325eba7..a56f2dcabf1c 100644 --- a/sys/dev/sysmon/sysmonvar.h +++ b/sys/dev/sysmon/sysmonvar.h @@ -1,4 +1,4 @@ -/* $NetBSD: sysmonvar.h,v 1.36 2010/03/27 13:23:18 pgoyette Exp $ */ +/* $NetBSD: sysmonvar.h,v 1.37 2010/03/27 13:34:16 pgoyette Exp $ */ /*- * Copyright (c) 2000 Zembu Labs, Inc. @@ -208,9 +208,9 @@ uint32_t sysmon_envsys_get_max_value(bool (*)(const envsys_data_t*), bool); void sysmon_envsys_sensor_event(struct sysmon_envsys *, envsys_data_t *, int); -void sysmon_envsys_foreach_sensor(bool(*)(struct sysmon_envsys *, - envsys_data_t *, void*), void *, - bool); +void sysmon_envsys_foreach_sensor(bool(*)(const struct sysmon_envsys *, + const envsys_data_t *, void*), + void *, bool); void sysmon_envsys_init(void);