[PATCH 1/2] showmount: Eliminate compiler warnings

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

showmount.c: In function ‘main’:
showmount.c:210: warning: comparison between signed and unsigned integer expressions
showmount.c:249: warning: comparison between signed and unsigned integer expressions

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

 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[] = {
 	MOUNTVERS_POSIX,
 	MOUNTVERS,
 };
-static const int max_vers_tblsz = 
+static const unsigned int max_vers_tblsz = 
 	(sizeof(mount_vers_tbl)/sizeof(mount_vers_tbl[0]));
 
 /*

--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux