From owner-svn-src-head@FreeBSD.ORG Thu Apr 30 20:50:43 2015 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id A46558D7; Thu, 30 Apr 2015 20:50:43 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 93EDE1B0D; Thu, 30 Apr 2015 20:50:43 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.9/8.14.9) with ESMTP id t3UKohYn045834; Thu, 30 Apr 2015 20:50:43 GMT (envelope-from oshogbo@FreeBSD.org) Received: (from oshogbo@localhost) by svn.freebsd.org (8.14.9/8.14.9/Submit) id t3UKohfj045829; Thu, 30 Apr 2015 20:50:43 GMT (envelope-from oshogbo@FreeBSD.org) Message-Id: <201504302050.t3UKohfj045829@svn.freebsd.org> X-Authentication-Warning: svn.freebsd.org: oshogbo set sender to oshogbo@FreeBSD.org using -f From: Mariusz Zaborski Date: Thu, 30 Apr 2015 20:50:43 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r282283 - in head/sys: kern sys X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Apr 2015 20:50:43 -0000 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);