From b7be86aca6a358f4e88c65b7f39a54cba5b59dbd Mon Sep 17 00:00:00 2001 From: Mariusz Zaborski Date: Thu, 30 Apr 2015 20:50:42 +0000 Subject: [PATCH] Mark local function as static as a result of removing recursion. Approved by: pjd (mentor) --- sys/kern/subr_nvlist.c | 4 ++-- sys/sys/nvlist_impl.h | 4 ---- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/sys/kern/subr_nvlist.c b/sys/kern/subr_nvlist.c index e250a042a689..6f1d1d5ea11d 100644 --- a/sys/kern/subr_nvlist.c +++ b/sys/kern/subr_nvlist.c @@ -583,7 +583,7 @@ nvlist_pack_header(const nvlist_t *nvl, unsigned char *ptr, size_t *leftp) return (ptr); } -void * +static void * nvlist_xpack(const nvlist_t *nvl, int64_t *fdidxp, size_t *sizep) { unsigned char *buf, *ptr; @@ -762,7 +762,7 @@ nvlist_unpack_header(nvlist_t *nvl, const unsigned char *ptr, size_t nfds, return (NULL); } -nvlist_t * +static nvlist_t * nvlist_xunpack(const void *buf, size_t size, const int *fds, size_t nfds) { const unsigned char *ptr; diff --git a/sys/sys/nvlist_impl.h b/sys/sys/nvlist_impl.h index a59a90e34b39..8aeac672a842 100644 --- a/sys/sys/nvlist_impl.h +++ b/sys/sys/nvlist_impl.h @@ -38,10 +38,6 @@ #include "nv.h" -void *nvlist_xpack(const nvlist_t *nvl, int64_t *fdidxp, size_t *sizep); -nvlist_t *nvlist_xunpack(const void *buf, size_t size, const int *fds, - size_t nfds); - nvpair_t *nvlist_get_nvpair_parent(const nvlist_t *nvl); const unsigned char *nvlist_unpack_header(nvlist_t *nvl, const unsigned char *ptr, size_t nfds, bool *isbep, size_t *leftp);