diff options
author | John Birrell <jb@FreeBSD.org> | 2008-04-26 04:01:35 +0000 |
---|---|---|
committer | John Birrell <jb@FreeBSD.org> | 2008-04-26 04:01:35 +0000 |
commit | 4cc75139b96639698b4e96da3b60cd3d81e9a959 (patch) | |
tree | 991b48bb736dc250125471b73aecbbb8c3354328 /cddl/contrib/opensolaris/tools/ctf/common | |
parent | e9c7a604218405a972c7a532e655d5ef954c93d9 (diff) | |
download | src-4cc75139b96639698b4e96da3b60cd3d81e9a959.tar.gz src-4cc75139b96639698b4e96da3b60cd3d81e9a959.zip |
A lot of changes to make this code compile cleanly on FreeBSD.
Notes
Notes:
svn path=/head/; revision=178546
Diffstat (limited to 'cddl/contrib/opensolaris/tools/ctf/common')
-rw-r--r-- | cddl/contrib/opensolaris/tools/ctf/common/list.c | 4 | ||||
-rw-r--r-- | cddl/contrib/opensolaris/tools/ctf/common/memory.c | 1 |
2 files changed, 3 insertions, 2 deletions
diff --git a/cddl/contrib/opensolaris/tools/ctf/common/list.c b/cddl/contrib/opensolaris/tools/ctf/common/list.c index c01de9b9241d..4958f270a994 100644 --- a/cddl/contrib/opensolaris/tools/ctf/common/list.c +++ b/cddl/contrib/opensolaris/tools/ctf/common/list.c @@ -70,7 +70,7 @@ slist_add(list_t **list, void *data, int (*cmp)(void *, void *)) /*ARGSUSED2*/ static int -list_defcmp(void *d1, void *d2, void *private) +list_defcmp(void *d1, void *d2, void *private __unused) { return (d1 != d2); } @@ -135,7 +135,7 @@ list_iter(list_t *list, int (*func)(void *, void *), void *private) /*ARGSUSED*/ static int -list_count_cb(void *data, void *private) +list_count_cb(void *data __unused, void *private __unused) { return (1); } diff --git a/cddl/contrib/opensolaris/tools/ctf/common/memory.c b/cddl/contrib/opensolaris/tools/ctf/common/memory.c index 390ff128e433..e16044a8b672 100644 --- a/cddl/contrib/opensolaris/tools/ctf/common/memory.c +++ b/cddl/contrib/opensolaris/tools/ctf/common/memory.c @@ -35,6 +35,7 @@ #include <stdlib.h> #include <string.h> #include <strings.h> +#include "memory.h" static void memory_bailout(void) |