Constify the args to sysmon_envsys_foreach_sensor()'s callback function.

This commit is contained in:
pgoyette 2010-03-27 13:34:16 +00:00
parent 5dbc4fad52
commit aae23aaf98
2 changed files with 9 additions and 9 deletions

View File

@ -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 <sys/cdefs.h>
__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 <sys/param.h>
#include <sys/types.h>
@ -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;

View File

@ -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);