From patchwork Fri Oct 19 21:09:04 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chuck Lever X-Patchwork-Id: 192815 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" (not verified)) by ozlabs.org (Postfix) with ESMTPS id E20012C0427 for ; Sat, 20 Oct 2012 08:09:11 +1100 (EST) Received: from acsinet21.oracle.com (acsinet21.oracle.com [141.146.126.237]) by rcsinet15.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with ESMTP id q9JL98Ds002417 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 19 Oct 2012 21:09:09 GMT Received: from oss.oracle.com (oss-external.oracle.com [137.254.96.51]) by acsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id q9JL98RX001249 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 19 Oct 2012 21:09:08 GMT Received: from localhost ([127.0.0.1] helo=oss.oracle.com) by oss.oracle.com with esmtp (Exim 4.63) (envelope-from ) id 1TPJoZ-0007JS-W7; Fri, 19 Oct 2012 14:09:07 -0700 Received: from ucsinet22.oracle.com ([156.151.31.94]) by oss.oracle.com with esmtp (Exim 4.63) (envelope-from ) id 1TPJoZ-0007JK-8c for fedfs-utils-devel@oss.oracle.com; Fri, 19 Oct 2012 14:09:07 -0700 Received: from rcsinet11.oracle.com (rcsinet11.oracle.com [148.87.113.123]) by ucsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id q9JL960b027584 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 19 Oct 2012 21:09:06 GMT Received: from mail-ie0-f171.google.com (mail-ie0-f171.google.com [209.85.223.171]) by rcsinet11.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with ESMTP id q9JL8mUG008452 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=OK) for ; Fri, 19 Oct 2012 21:09:06 GMT Received: by mail-ie0-f171.google.com with SMTP id s9so1363018iec.2 for ; Fri, 19 Oct 2012 14:09:05 -0700 (PDT) Received: by 10.50.194.132 with SMTP id hw4mr10089341igc.9.1350680945800; Fri, 19 Oct 2012 14:09:05 -0700 (PDT) Received: from seurat.1015granger.net (adsl-99-26-161-222.dsl.sfldmi.sbcglobal.net. [99.26.161.222]) by mx.google.com with ESMTPS id 10sm16673816ign.5.2012.10.19.14.09.05 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 19 Oct 2012 14:09:05 -0700 (PDT) From: Chuck Lever To: fedfs-utils-devel@oss.oracle.com Date: Fri, 19 Oct 2012 17:09:04 -0400 Message-ID: <20121019210904.53119.95898.stgit@seurat.1015granger.net> In-Reply-To: <20121019210357.53119.28925.stgit@seurat.1015granger.net> References: <20121019210357.53119.28925.stgit@seurat.1015granger.net> User-Agent: StGIT/0.14.3 MIME-Version: 1.0 X-Flow-Control-Info: class=Default reputation=ipRepBelow100 ip=209.85.223.171 ct-class=R5 ct-vol1=-97 ct-vol2=9 ct-vol3=8 ct-risk=49 ct-spam1=78 ct-spam2=8 ct-bulk=6 rcpts=1 size=924 X-MM-CT-Classification: not spam X-MM-CT-RefID: str=0001.0A090203.5081C172.0032,ss=1,re=0.000,fgs=0 Subject: [fedfs-utils] [PATCH 10/11] plug-in: Silence sparse warning 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: acsinet21.oracle.com [141.146.126.237] Address the following sparse warning: nfs-plugin.c:376:70: warning: mixing different enum types nfs-plugin.c:376:70: int enum jp_status versus nfs-plugin.c:376:70: int enum FedFsStatus Introduced by commit d9602565 "plugin: Introduce the junction plug-in API" January 12, 2012. Signed-off-by: Chuck Lever --- src/plug-ins/nfs-plugin.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/plug-ins/nfs-plugin.c b/src/plug-ins/nfs-plugin.c index 275caf1..ba7c2e0 100644 --- a/src/plug-ins/nfs-plugin.c +++ b/src/plug-ins/nfs-plugin.c @@ -373,7 +373,7 @@ nfs_jp_resolve_fsn(const char *fsn_uuid, nsdb_t host, break; default: nfs_jp_debug("%s: Failed to resolve FSN %s: %s\n", - __func__, fsn_uuid, nsdb_display_fedfsstatus(status)); + __func__, fsn_uuid, nsdb_display_fedfsstatus(retval)); } nsdb_close_nsdb(host);