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/dtrace Change module typ...
details: https://anonhg.NetBSD.org/src/rev/aecbbc9f58df
branches: trunk
changeset: 1000085:aecbbc9f58df
user: hannken <hannken%NetBSD.org@localhost>
date: Fri Jul 05 08:28:52 2019 +0000
description:
Change module type to "MODULE_CLASS_MISC" to allow preloading.
Change "dtrace_nullop()" to return zero, it gets casted to "int (*)(...)".
diffstat:
external/cddl/osnet/dist/uts/common/dtrace/dtrace.c | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diffs (25 lines):
diff -r 005e1f5b636f -r aecbbc9f58df external/cddl/osnet/dist/uts/common/dtrace/dtrace.c
--- a/external/cddl/osnet/dist/uts/common/dtrace/dtrace.c Fri Jul 05 08:28:16 2019 +0000
+++ b/external/cddl/osnet/dist/uts/common/dtrace/dtrace.c Fri Jul 05 08:28:52 2019 +0000
@@ -395,9 +395,12 @@
{ DTRACE_STABILITY_STABLE, DTRACE_STABILITY_STABLE, DTRACE_CLASS_COMMON },
};
-static void
+static int
dtrace_nullop(void)
-{}
+{
+
+ return 0;
+}
static dtrace_pops_t dtrace_provider_ops = {
(void (*)(void *, dtrace_probedesc_t *))dtrace_nullop,
@@ -18994,5 +18997,5 @@
#endif /* __FreeBSD__ */
#ifdef __NetBSD__
-MODULE(MODULE_CLASS_DRIVER, dtrace, "solaris");
+MODULE(MODULE_CLASS_MISC, dtrace, "solaris");
#endif /* __NetBSD__ */
Home |
Main Index |
Thread Index |
Old Index