From: Chuck Lever <chuck.lever@oracle.com>
To: steved@redhat.com
Cc: linux-nfs@vger.kernel.org
Subject: [PATCH 3/3] showmount command: Quiesce warning when TI-RPC is disabled
Date: Tue, 06 Jan 2009 18:22:54 -0500 [thread overview]
Message-ID: <20090106232254.24661.4504.stgit@ingres.1015granger.net> (raw)
In-Reply-To: <20090106231909.24661.92964.stgit-07a7zB5ZJzbwdl/1UfZZQIVfYA8g3rJ/@public.gmane.org>
Make sure nfs_sm_pgmtbl is not compiled if TI-RPC functions are not
available. This quiesces the following compiler warning:
showmount.c:53: warning: =E2=80=98nfs_sm_pgmtbl=E2=80=99 defined but =
not used
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
---
utils/showmount/showmount.c | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/utils/showmount/showmount.c b/utils/showmount/showmount.c
index 17f7d87..2695c51 100644
--- a/utils/showmount/showmount.c
+++ b/utils/showmount/showmount.c
@@ -50,13 +50,6 @@ static int aflag =3D 0;
static int dflag =3D 0;
static int eflag =3D 0;
=20
-static const char *nfs_sm_pgmtbl[] =3D {
- "showmount",
- "mount",
- "mountd",
- NULL,
-};
-
static struct option longopts[] =3D
{
{ "all", 0, 0, 'a' },
@@ -87,6 +80,13 @@ static void usage(FILE *fp, int n)
=20
#ifdef HAVE_CLNT_CREATE
=20
+static const char *nfs_sm_pgmtbl[] =3D {
+ "showmount",
+ "mount",
+ "mountd",
+ NULL,
+};
+
/*
* Generate an RPC client handle connected to the mountd service
* at @hostname, or die trying.
next prev parent reply other threads:[~2009-01-06 23:24 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-06 23:22 [PATCH 0/3] Three more nfs-utils clean ups Chuck Lever
[not found] ` <20090106231909.24661.92964.stgit-07a7zB5ZJzbwdl/1UfZZQIVfYA8g3rJ/@public.gmane.org>
2009-01-06 23:22 ` [PATCH 1/3] configure: Remove inet_ntop(3) check from configure.ac Chuck Lever
2009-01-06 23:22 ` [PATCH 2/3] configure: Add new build option "--enable-tirpc" Chuck Lever
2009-01-06 23:22 ` Chuck Lever [this message]
2009-01-07 17:54 ` [PATCH 0/3] Three more nfs-utils clean ups Steve Dickson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090106232254.24661.4504.stgit@ingres.1015granger.net \
--to=chuck.lever@oracle.com \
--cc=linux-nfs@vger.kernel.org \
--cc=steved@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox