From 52c14c7a3f5fbfa9c707a6206668a1eaa6c77a50 Mon Sep 17 00:00:00 2001 From: jb Date: Sat, 26 Apr 2008 00:54:52 +0000 Subject: Vendor import of the full userland contrib part of DTrace support from OpenSolaris. This commit resets files to match the versions in the OpenSolaris tree as of 2008/04/10. The changes in this import from the previous import are the ones that will subsequently re-applied to take files off the vendor branch. This is unfortunately necessary because the Solaris developers won't allow FreeBSD support #ifdefs in their source code because that creates 'dead code' (stuff that they never compile). --- cddl/contrib/opensolaris/lib/libctf/common/ctf_subr.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'cddl/contrib/opensolaris/lib/libctf/common/ctf_subr.c') diff --git a/cddl/contrib/opensolaris/lib/libctf/common/ctf_subr.c b/cddl/contrib/opensolaris/lib/libctf/common/ctf_subr.c index e9f5ad7..467b6a8 100644 --- a/cddl/contrib/opensolaris/lib/libctf/common/ctf_subr.c +++ b/cddl/contrib/opensolaris/lib/libctf/common/ctf_subr.c @@ -27,6 +27,7 @@ #pragma ident "%Z%%M% %I% %E% SMI" #include +#include #include #include @@ -57,7 +58,7 @@ ctf_alloc(size_t size) /*ARGSUSED*/ void -ctf_free(void *buf, __unused size_t size) +ctf_free(void *buf, size_t size) { free(buf); } @@ -65,7 +66,7 @@ ctf_free(void *buf, __unused size_t size) const char * ctf_strerror(int err) { - return ((const char *) strerror(err)); + return (strerror(err)); } /*PRINTFLIKE1*/ -- cgit v1.1