Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/cddl/osnet/dist/uts/common constify
details: https://anonhg.NetBSD.org/src/rev/4438d8ea5616
branches: trunk
changeset: 336589:4438d8ea5616
user: christos <christos%NetBSD.org@localhost>
date: Sat Mar 07 15:14:29 2015 +0000
description:
constify
diffstat:
external/cddl/osnet/dist/uts/common/dtrace/dtrace.c | 10 +++++-----
external/cddl/osnet/dist/uts/common/sys/dtrace.h | 4 ++--
2 files changed, 7 insertions(+), 7 deletions(-)
diffs (43 lines):
diff -r 9c77f1a76356 -r 4438d8ea5616 external/cddl/osnet/dist/uts/common/dtrace/dtrace.c
--- a/external/cddl/osnet/dist/uts/common/dtrace/dtrace.c Sat Mar 07 15:14:09 2015 +0000
+++ b/external/cddl/osnet/dist/uts/common/dtrace/dtrace.c Sat Mar 07 15:14:29 2015 +0000
@@ -7892,8 +7892,8 @@
* name and probe name.
*/
dtrace_id_t
-dtrace_probe_lookup(dtrace_provider_id_t prid, char *mod,
- char *func, char *name)
+dtrace_probe_lookup(dtrace_provider_id_t prid, const char *mod,
+ const char *func, const char *name)
{
dtrace_probekey_t pkey;
dtrace_id_t id;
@@ -7901,11 +7901,11 @@
pkey.dtpk_prov = ((dtrace_provider_t *)prid)->dtpv_name;
pkey.dtpk_pmatch = &dtrace_match_string;
- pkey.dtpk_mod = mod;
+ pkey.dtpk_mod = __UNCONST(mod);
pkey.dtpk_mmatch = mod ? &dtrace_match_string : &dtrace_match_nul;
- pkey.dtpk_func = func;
+ pkey.dtpk_func = __UNCONST(func);
pkey.dtpk_fmatch = func ? &dtrace_match_string : &dtrace_match_nul;
- pkey.dtpk_name = name;
+ pkey.dtpk_name = __UNCONST(name);
pkey.dtpk_nmatch = name ? &dtrace_match_string : &dtrace_match_nul;
pkey.dtpk_id = DTRACE_IDNONE;
diff -r 9c77f1a76356 -r 4438d8ea5616 external/cddl/osnet/dist/uts/common/sys/dtrace.h
--- a/external/cddl/osnet/dist/uts/common/sys/dtrace.h Sat Mar 07 15:14:09 2015 +0000
+++ b/external/cddl/osnet/dist/uts/common/sys/dtrace.h Sat Mar 07 15:14:29 2015 +0000
@@ -2055,8 +2055,8 @@
extern int dtrace_unregister(dtrace_provider_id_t);
extern int dtrace_condense(dtrace_provider_id_t);
extern void dtrace_invalidate(dtrace_provider_id_t);
-extern dtrace_id_t dtrace_probe_lookup(dtrace_provider_id_t, char *,
- char *, char *);
+extern dtrace_id_t dtrace_probe_lookup(dtrace_provider_id_t, const char *,
+ const char *, const char *);
extern dtrace_id_t dtrace_probe_create(dtrace_provider_id_t, const char *,
const char *, const char *, int, void *);
extern void *dtrace_probe_arg(dtrace_provider_id_t, dtrace_id_t);
Home |
Main Index |
Thread Index |
Old Index