public inbox for linux-nfs@vger.kernel.org
 help / color / mirror / Atom feed
From: Chuck Lever <chuck.lever@oracle.com>
To: steved@redhat.com
Cc: linux-nfs@vger.kernel.org
Subject: [PATCH 1/2] showmount: Eliminate compiler warnings
Date: Thu, 07 Jan 2010 11:26:21 -0500	[thread overview]
Message-ID: <20100107162621.27102.7326.stgit@localhost.localdomain> (raw)
In-Reply-To: <20100107162421.27102.21422.stgit-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>

Introduced by "showmount: Try the highest mount version then fall back
to lower ones", seen with "-Wextra".

showmount.c: In function =E2=80=98main=E2=80=99:
showmount.c:210: warning: comparison between signed and unsigned intege=
r expressions
showmount.c:249: warning: comparison between signed and unsigned intege=
r expressions

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
---

 utils/showmount/showmount.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/utils/showmount/showmount.c b/utils/showmount/showmount.c
index 74cf116..652aa85 100644
--- a/utils/showmount/showmount.c
+++ b/utils/showmount/showmount.c
@@ -90,7 +90,7 @@ static const rpcvers_t mount_vers_tbl[] =3D {
 	MOUNTVERS_POSIX,
 	MOUNTVERS,
 };
-static const int max_vers_tblsz =3D=20
+static const unsigned int max_vers_tblsz =3D=20
 	(sizeof(mount_vers_tbl)/sizeof(mount_vers_tbl[0]));
=20
 /*


  parent reply	other threads:[~2010-01-07 16:28 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-07 16:26 [PATCH 0/2] showmount bug fixes Chuck Lever
     [not found] ` <20100107162421.27102.21422.stgit-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2010-01-07 16:26   ` Chuck Lever [this message]
2010-01-07 16:26   ` [PATCH 2/2] showmount: Use CLNT_CONTROL for version fallback Chuck Lever
2010-01-07 17:52   ` [PATCH 0/2] showmount bug fixes Steve Dickson
     [not found]     ` <4B461F48.4070906-AfCzQyP5zfLQT0dZR+AlfA@public.gmane.org>
2010-01-07 18:38       ` Chuck Lever
2010-01-07 20:25         ` Steve Dickson
     [not found]           ` <4B464355.1000405-AfCzQyP5zfLQT0dZR+AlfA@public.gmane.org>
2010-01-07 22:43             ` Chuck Lever
2010-01-07 23:32               ` Steve Dickson
2010-01-12 12:26   ` 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=20100107162621.27102.7326.stgit@localhost.localdomain \
    --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