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/systrace Correct compilation of osne...



details:   https://anonhg.NetBSD.org/src/rev/a0f41f2b7e9d
branches:  trunk
changeset: 362387:a0f41f2b7e9d
user:      kamil <kamil%NetBSD.org@localhost>
date:      Wed Jun 06 17:47:10 2018 +0000

description:
Correct compilation of osnet/dev/systrace/systrace.c under Clang

Mark arguments to dtrace_probe_lookup() with __UNCONST().
The proper fix constifying it causes pollution of const in too many files.

This could be done with -W flags, but they are incompatible between
compilers.

This is a step forward functional MKLLVM=yes HAVE_LLVM=yes build.

Sponsored by <The NetBSD Foundation>

diffstat:

 external/cddl/osnet/dev/systrace/systrace.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r d73cb46020ba -r a0f41f2b7e9d external/cddl/osnet/dev/systrace/systrace.c
--- a/external/cddl/osnet/dev/systrace/systrace.c       Wed Jun 06 17:19:49 2018 +0000
+++ b/external/cddl/osnet/dev/systrace/systrace.c       Wed Jun 06 17:47:10 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: systrace.c,v 1.10 2018/05/28 21:05:04 chs Exp $        */
+/*     $NetBSD: systrace.c,v 1.11 2018/06/06 17:47:10 kamil Exp $      */
 
 /*
  * CDDL HEADER START
@@ -356,7 +356,7 @@
 #else
                const char *name = ALTSYSCALLNAMES[i] ? ALTSYSCALLNAMES[i] :
                    SYSCALLNAMES[i];
-               if (dtrace_probe_lookup(systrace_id, NULL, name, "entry") != 0)
+               if (dtrace_probe_lookup(systrace_id, NULL, __UNCONST(name), __UNCONST("entry")) != 0)
                        continue;
 
                (void) dtrace_probe_create(systrace_id, NULL,



Home | Main Index | Thread Index | Old Index