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
details: https://anonhg.NetBSD.org/src/rev/8e8ec1be26e8
branches: trunk
changeset: 783303:8e8ec1be26e8
user: pgoyette <pgoyette%NetBSD.org@localhost>
date: Fri Dec 14 15:33:19 2012 +0000
description:
Constify
diffstat:
sys/dev/sysmon/sysmon_envsys_events.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diffs (54 lines):
diff -r 666e22583ef6 -r 8e8ec1be26e8 sys/dev/sysmon/sysmon_envsys_events.c
--- a/sys/dev/sysmon/sysmon_envsys_events.c Fri Dec 14 10:48:48 2012 +0000
+++ b/sys/dev/sysmon/sysmon_envsys_events.c Fri Dec 14 15:33:19 2012 +0000
@@ -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 @@
{ -1, -1 }
};
-struct op_t {
+static const struct op_t {
const char *name;
enum envsys_lims idx;
uint32_t prop;
@@ -84,7 +84,7 @@
{ 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 @@
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 @@
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);
Home |
Main Index |
Thread Index |
Old Index