Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/cddl/osnet/dev/sdt SDT is not a disease. Use const ...
details: https://anonhg.NetBSD.org/src/rev/a29a2e36f5d3
branches: trunk
changeset: 343481:a29a2e36f5d3
user: joerg <joerg%NetBSD.org@localhost>
date: Sat Feb 06 18:19:59 2016 +0000
description:
SDT is not a disease. Use const consistently.
diffstat:
external/cddl/osnet/dev/sdt/sdt.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diffs (43 lines):
diff -r 106a15f1de1b -r a29a2e36f5d3 external/cddl/osnet/dev/sdt/sdt.c
--- a/external/cddl/osnet/dev/sdt/sdt.c Sat Feb 06 16:58:31 2016 +0000
+++ b/external/cddl/osnet/dev/sdt/sdt.c Sat Feb 06 18:19:59 2016 +0000
@@ -39,7 +39,7 @@
* unloaded; in particular, probes may not span multiple kernel modules.
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sdt.c,v 1.14 2015/10/02 17:13:32 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sdt.c,v 1.15 2016/02/06 18:19:59 joerg Exp $");
#include <sys/cdefs.h>
#include <sys/param.h>
@@ -408,8 +408,8 @@
*/
#undef __weak
#define __weak
-__link_set_decl(sdt_providers_set, struct std_provider);
-__link_set_decl(sdt_probes_set, struct std_probe);
+__link_set_decl(sdt_providers_set, struct sdt_provider);
+__link_set_decl(sdt_probes_set, struct sdt_probe);
__link_set_decl(sdt_argtypes_set, struct sdt_argtype);
/*
@@ -422,8 +422,8 @@
sdt_link_set_load(void)
{
struct sdt_provider * const *provider;
- struct sdt_probe **probe;
- struct sdt_argtype **argtype;
+ struct sdt_probe * const *probe;
+ struct sdt_argtype * const *argtype;
__link_set_foreach(provider, sdt_providers_set) {
sdt_create_provider(*provider);
@@ -445,7 +445,7 @@
static void
sdt_link_set_unload(void)
{
- struct sdt_provider **curr, *prov, *tmp;
+ struct sdt_provider * const *curr, *prov, *tmp;
/*
* Go through all the providers declared in this linker file and
Home |
Main Index |
Thread Index |
Old Index