aboutsummaryrefslogtreecommitdiff
path: root/cddl/contrib/opensolaris/lib/libctf/common/ctf_subr.c
diff options
context:
space:
mode:
authorJohn Birrell <jb@FreeBSD.org>2008-04-26 00:54:52 +0000
committerJohn Birrell <jb@FreeBSD.org>2008-04-26 00:54:52 +0000
commit20594ebf9039b47ff078f8061765a1bd7aeb91e4 (patch)
tree24d646e40917d468e03d33d5425f93b94e78d6b1 /cddl/contrib/opensolaris/lib/libctf/common/ctf_subr.c
parent89b5b33da21ff6dbab5e91c04d9a6d8e3b17405a (diff)
parent275928fc142e604d7d091feb5eff54c72f241964 (diff)
downloadsrc-20594ebf9039b47ff078f8061765a1bd7aeb91e4.tar.gz
src-20594ebf9039b47ff078f8061765a1bd7aeb91e4.zip
This commit was generated by cvs2svn to compensate for changes in r178528,
which included commits to RCS files with non-trunk default branches.
Notes
Notes: svn path=/head/; revision=178529
Diffstat (limited to 'cddl/contrib/opensolaris/lib/libctf/common/ctf_subr.c')
-rw-r--r--cddl/contrib/opensolaris/lib/libctf/common/ctf_subr.c5
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 e9f5ad7a1f71..467b6a8181a8 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*/