Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 Apr 2015 20:50:43 +0000 (UTC)
From:      Mariusz Zaborski <oshogbo@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r282283 - in head/sys: kern sys
Message-ID:  <201504302050.t3UKohfj045829@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201504302050.t3UKohfj045829>