diff options
author | Ryan Libby <rlibby@FreeBSD.org> | 2021-01-11 05:53:15 +0000 |
---|---|---|
committer | Ryan Libby <rlibby@FreeBSD.org> | 2021-01-11 05:53:15 +0000 |
commit | c14e17a49cdd72c8c05d12fbec631c409b14b9cb (patch) | |
tree | c2090e3f8c89cbb5f86e692b3510d6dd50c5e091 /cddl/contrib | |
parent | af1878dac7b338d7ce229c00776d8af69b357576 (diff) | |
download | src-c14e17a49cdd72c8c05d12fbec631c409b14b9cb.tar.gz src-c14e17a49cdd72c8c05d12fbec631c409b14b9cb.zip |
Diffstat (limited to 'cddl/contrib')
4 files changed, 9 insertions, 6 deletions
diff --git a/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/java_api/tst.FunctionLookup.c b/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/java_api/tst.FunctionLookup.c index 965ad72278a1..ddbbae619aeb 100644 --- a/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/java_api/tst.FunctionLookup.c +++ b/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/java_api/tst.FunctionLookup.c @@ -41,7 +41,7 @@ f2(f func, int i) } int -main() +main(void) { f2(f1, 3); diff --git a/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/java_api/tst.ProbeData.c b/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/java_api/tst.ProbeData.c index 7fe7b16d1d78..7786d58a4c65 100644 --- a/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/java_api/tst.ProbeData.c +++ b/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/java_api/tst.ProbeData.c @@ -66,7 +66,7 @@ fN2(f func, char *a, int i __unused) } int -main() +main(void) { /* * Avoid length of 1, 2, 4, or 8 bytes so DTrace will treat the data as diff --git a/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/pid/tst.weak1.c b/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/pid/tst.weak1.c index 5680f2e177f6..d9b7f5a184a2 100644 --- a/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/pid/tst.weak1.c +++ b/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/pid/tst.weak1.c @@ -33,8 +33,7 @@ * leading underscores. */ -#pragma weak _go = go - +extern int _go(int); int go(int); int @@ -57,3 +56,5 @@ main(void) for (;;) getpid(); } + +#pragma weak _go = go diff --git a/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/pid/tst.weak2.c b/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/pid/tst.weak2.c index 24a28420f3ef..49f486a460a3 100644 --- a/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/pid/tst.weak2.c +++ b/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/pid/tst.weak2.c @@ -33,14 +33,14 @@ * leading underscores. */ +extern int _go(int); + static int __unused go(int a) { return (a + 1); } -#pragma weak _go = go - static void handle(int sig __unused) { @@ -55,3 +55,5 @@ main(void) for (;;) getpid(); } + +#pragma weak _go = go |