Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/sysmon Constify the args to sysmon_envsys_foreach_se...
details: https://anonhg.NetBSD.org/src/rev/0621cd604f6b
branches: trunk
changeset: 753418:0621cd604f6b
user: pgoyette <pgoyette%NetBSD.org@localhost>
date: Sat Mar 27 13:34:16 2010 +0000
description:
Constify the args to sysmon_envsys_foreach_sensor()'s callback function.
diffstat:
sys/dev/sysmon/sysmon_envsys.c | 10 +++++-----
sys/dev/sysmon/sysmonvar.h | 8 ++++----
2 files changed, 9 insertions(+), 9 deletions(-)
diffs (53 lines):
diff -r 0ea7dd358c2e -r 0621cd604f6b sys/dev/sysmon/sysmon_envsys.c
--- a/sys/dev/sysmon/sysmon_envsys.c Sat Mar 27 13:23:18 2010 +0000
+++ b/sys/dev/sysmon/sysmon_envsys.c Sat Mar 27 13:34:16 2010 +0000
@@ -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 @@
* 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 -r 0ea7dd358c2e -r 0621cd604f6b sys/dev/sysmon/sysmonvar.h
--- a/sys/dev/sysmon/sysmonvar.h Sat Mar 27 13:23:18 2010 +0000
+++ b/sys/dev/sysmon/sysmonvar.h Sat Mar 27 13:34:16 2010 +0000
@@ -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 @@
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);
Home |
Main Index |
Thread Index |
Old Index