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 04:22:32 +0000
committerJohn Birrell <jb@FreeBSD.org>2008-04-26 04:22:32 +0000
commitc839260786bb48bfd7cf94974f96a76f6c099a10 (patch)
tree76913b0c605478d39d5bc9f2e6443c31025501ed /cddl/contrib/opensolaris/lib/libctf/common/ctf_subr.c
parentdf5c121dfe5c820d7a3df1af7d650269e393cdb5 (diff)
downloadsrc-c839260786bb48bfd7cf94974f96a76f6c099a10.tar.gz
src-c839260786bb48bfd7cf94974f96a76f6c099a10.zip
Make this compile cleanly.
Notes
Notes: svn path=/head/; revision=178554
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, 2 insertions, 3 deletions
diff --git a/cddl/contrib/opensolaris/lib/libctf/common/ctf_subr.c b/cddl/contrib/opensolaris/lib/libctf/common/ctf_subr.c
index 467b6a8181a8..e9f5ad7a1f71 100644
--- a/cddl/contrib/opensolaris/lib/libctf/common/ctf_subr.c
+++ b/cddl/contrib/opensolaris/lib/libctf/common/ctf_subr.c
@@ -27,7 +27,6 @@
#pragma ident "%Z%%M% %I% %E% SMI"
#include <ctf_impl.h>
-#include <libctf.h>
#include <sys/mman.h>
#include <stdarg.h>
@@ -58,7 +57,7 @@ ctf_alloc(size_t size)
/*ARGSUSED*/
void
-ctf_free(void *buf, size_t size)
+ctf_free(void *buf, __unused size_t size)
{
free(buf);
}
@@ -66,7 +65,7 @@ ctf_free(void *buf, size_t size)
const char *
ctf_strerror(int err)
{
- return (strerror(err));
+ return ((const char *) strerror(err));
}
/*PRINTFLIKE1*/