diff options
author | jb <jb@FreeBSD.org> | 2008-04-26 00:54:52 +0000 |
---|---|---|
committer | jb <jb@FreeBSD.org> | 2008-04-26 00:54:52 +0000 |
commit | 52c14c7a3f5fbfa9c707a6206668a1eaa6c77a50 (patch) | |
tree | c98db398653c7c531756a3578af91819cb574281 /cddl/contrib/opensolaris/lib/libctf/common/ctf_subr.c | |
parent | cb8ce777270daa16660da8e87ef6a11d5bc5408f (diff) | |
download | FreeBSD-src-52c14c7a3f5fbfa9c707a6206668a1eaa6c77a50.zip FreeBSD-src-52c14c7a3f5fbfa9c707a6206668a1eaa6c77a50.tar.gz |
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).
Diffstat (limited to 'cddl/contrib/opensolaris/lib/libctf/common/ctf_subr.c')
-rw-r--r-- | cddl/contrib/opensolaris/lib/libctf/common/ctf_subr.c | 5 |
1 files changed, 3 insertions, 2 deletions
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 <ctf_impl.h> +#include <libctf.h> #include <sys/mman.h> #include <stdarg.h> @@ -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*/ |