From patchwork Wed Dec 21 22:52:31 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chuck Lever X-Patchwork-Id: 132756 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from rcsinet15.oracle.com (rcsinet15.oracle.com [148.87.113.117]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "rcsinet15.oracle.com", Issuer "VeriSign Class 3 International Server CA - G3" (verified OK)) by ozlabs.org (Postfix) with ESMTPS id A9D84B6F68 for ; Thu, 22 Dec 2011 09:52:42 +1100 (EST) Received: from acsinet22.oracle.com (acsinet22.oracle.com [141.146.126.238]) by rcsinet15.oracle.com (Switch-3.4.4/Switch-3.4.4) with ESMTP id pBLMqa76023674 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 21 Dec 2011 22:52:37 GMT Received: from oss.oracle.com (oss.oracle.com [141.146.12.120]) by acsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id pBLMqaCx001179 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 21 Dec 2011 22:52:36 GMT Received: from localhost ([127.0.0.1] helo=oss.oracle.com) by oss.oracle.com with esmtp (Exim 4.63) (envelope-from ) id 1RdV1X-0001tr-Vi; Wed, 21 Dec 2011 14:52:36 -0800 Received: from rcsinet12.oracle.com ([148.87.113.124]) by oss.oracle.com with esmtp (Exim 4.63) (envelope-from ) id 1RdV1W-0001tk-J5 for fedfs-utils-devel@oss.oracle.com; Wed, 21 Dec 2011 14:52:34 -0800 Received: from mail-yw0-f43.google.com (mail-yw0-f43.google.com [209.85.213.43]) by rcsinet12.oracle.com (Sentrion-MTA-4.2.0/Sentrion-MTA-4.2.0) with ESMTP id pBLMqWLR001372 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=OK) for ; Wed, 21 Dec 2011 22:52:34 GMT Received: by yhfq11 with SMTP id q11so1998925yhf.2 for ; Wed, 21 Dec 2011 14:52:32 -0800 (PST) Received: by 10.236.146.36 with SMTP id q24mr12302539yhj.85.1324507952550; Wed, 21 Dec 2011 14:52:32 -0800 (PST) Received: from degas.1015granger.net (adsl-99-26-161-222.dsl.sfldmi.sbcglobal.net. [99.26.161.222]) by mx.google.com with ESMTPS id q5sm11371653yhm.7.2011.12.21.14.52.31 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 21 Dec 2011 14:52:32 -0800 (PST) From: Chuck Lever To: fedfs-utils-devel@oss.oracle.com Date: Wed, 21 Dec 2011 17:52:31 -0500 Message-ID: <20111221225230.23950.98777.stgit@degas.1015granger.net> In-Reply-To: <20111221222832.23950.14134.stgit@degas.1015granger.net> References: <20111221222832.23950.14134.stgit@degas.1015granger.net> User-Agent: StGIT/0.14.3 MIME-Version: 1.0 X-Flow-Control-Info: class=ISPs ip=209.85.213.43 ct-class=G1 ct-vol1=0 ct-vol2=0 ct-vol3=0 ct-risk=0 ct-spam1=0 ct-spam2=0 ct-bulk=0 rcpts=1 size=1163 Subject: [fedfs-utils] [PATCH 8/8] fedfsd: Use static functions in svc.c X-BeenThere: fedfs-utils-devel@oss.oracle.com X-Mailman-Version: 2.1.9 Precedence: list Reply-To: fedfs-utils Developers List-Id: fedfs-utils Developers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: fedfs-utils-devel-bounces@oss.oracle.com Errors-To: fedfs-utils-devel-bounces@oss.oracle.com X-Source-IP: acsinet22.oracle.com [141.146.126.238] X-CT-RefId: str=0001.0A090202.4EF26335.00F1:SCFSTAT1119972, ss=1, re=-4.000, fgs=0 X-Auth-Type: Internal IP Clean up: make some internal-use-only functions static. Signed-off-by: Chuck Lever --- src/fedfsd/svc.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/fedfsd/svc.c b/src/fedfsd/svc.c index 7ce6b46..316042f 100644 --- a/src/fedfsd/svc.c +++ b/src/fedfsd/svc.c @@ -107,7 +107,7 @@ out_unknown: "name" was too long, or port number was not valid @endverbatim */ -FedFsStatus +static FedFsStatus fedfsd_nsdbname(const FedFsNsdbName name, char **hostname, unsigned short *port) { @@ -159,7 +159,7 @@ fedfsd_nsdbname(const FedFsNsdbName name, char **hostname, memory was not available @endverbatim */ -FedFsStatus +static FedFsStatus fedfsd_nsdb_to_nsdbname(const nsdb_t host, FedFsNsdbName *name) { name->hostname.utf8string_val = strdup(nsdb_hostname(host)); @@ -315,7 +315,7 @@ out_err: * alter the "pathname" argument. Most particularly, we MUST ensure * that no component of "pathname" is a junction. */ -FedFsStatus +static FedFsStatus fedfsd_pathwalk(const FedFsPathName fpath, char **pathname) { FedFsStatus retval;