svn commit: r282283 - in head/sys: kern sys
Mariusz Zaborski
oshogbo at FreeBSD.org
Thu Apr 30 20:50:43 UTC 2015
Author: oshogbo
Date: Thu Apr 30 20:50:42 2015
New Revision: 282283
URL: https://svnweb.freebsd.org/changeset/base/282283
Log:
Mark local function as static as a result of removing recursion.
Approved by: pjd (mentor)
Modified:
head/sys/kern/subr_nvlist.c
head/sys/sys/nvlist_impl.h
Modified: head/sys/kern/subr_nvlist.c
==============================================================================
--- head/sys/kern/subr_nvlist.c Thu Apr 30 20:47:33 2015 (r282282)
+++ head/sys/kern/subr_nvlist.c Thu Apr 30 20:50:42 2015 (r282283)
@@ -583,7 +583,7 @@ nvlist_pack_header(const nvlist_t *nvl,
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 @@ failed:
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;
Modified: head/sys/sys/nvlist_impl.h
==============================================================================
--- head/sys/sys/nvlist_impl.h Thu Apr 30 20:47:33 2015 (r282282)
+++ head/sys/sys/nvlist_impl.h Thu Apr 30 20:50:42 2015 (r282283)
@@ -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);
More information about the svn-src-head
mailing list