diff options
| author | pgoyette <pgoyette@NetBSD.org> | 2012-12-14 15:33:19 +0000 |
|---|---|---|
| committer | pgoyette <pgoyette@NetBSD.org> | 2012-12-14 15:33:19 +0000 |
| commit | fa087f5d49fa15ad12882ff33477ce17ce37a151 (patch) | |
| tree | 0f3e08bab92e3884dc02204d7b50f8ed41f3ce8c /sys/dev/sysmon | |
| parent | e1dcf09a605f32a80d069b1bf08f4668b348f181 (diff) | |
Constify
Diffstat (limited to 'sys/dev/sysmon')
| -rw-r--r-- | sys/dev/sysmon/sysmon_envsys_events.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/dev/sysmon/sysmon_envsys_events.c b/sys/dev/sysmon/sysmon_envsys_events.c index 63c45a7bcae..66160b7f509 100644 --- a/sys/dev/sysmon/sysmon_envsys_events.c +++ b/sys/dev/sysmon/sysmon_envsys_events.c @@ -1,4 +1,4 @@ -/* $NetBSD: sysmon_envsys_events.c,v 1.107 2012/12/11 15:39:06 pgoyette Exp $ */ +/* $NetBSD: sysmon_envsys_events.c,v 1.108 2012/12/14 15:33:19 pgoyette Exp $ */ /*- * Copyright (c) 2007, 2008 Juan Romero Pardines. @@ -30,7 +30,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: sysmon_envsys_events.c,v 1.107 2012/12/11 15:39:06 pgoyette Exp $"); +__KERNEL_RCSID(0, "$NetBSD: sysmon_envsys_events.c,v 1.108 2012/12/14 15:33:19 pgoyette Exp $"); #include <sys/param.h> #include <sys/types.h> @@ -65,7 +65,7 @@ static const struct sme_sensor_event sme_sensor_event[] = { { -1, -1 } }; -struct op_t { +static const struct op_t { const char *name; enum envsys_lims idx; uint32_t prop; @@ -84,7 +84,7 @@ struct op_t { { NULL, 0, 0 } }; -struct ev_reg_t { +static const struct ev_reg_t { uint32_t crittype; uint32_t powertype; const char *name; @@ -122,7 +122,7 @@ sme_event_register(prop_dictionary_t sdict, envsys_data_t *edata, prop_object_t obj; int error = 0; const char *objkey; - struct op_t *op; + const struct op_t *op; KASSERT(sdict != NULL); KASSERT(edata != NULL); @@ -495,7 +495,7 @@ sme_event_drvadd(void *arg) sysmon_envsys_lim_t lims; uint32_t props; int error = 0; - struct ev_reg_t *reg; + const struct ev_reg_t *reg; KASSERT(sed_t != NULL); |
