From 4fc8cacd748d59dd3f463148994700bdd7610908 Mon Sep 17 00:00:00 2001 From: Chuck Lever Date: Tue, 14 Jul 2009 16:48:50 -0400 Subject: [PATCH] mount.nfs: Use correct data type in discover_nfs_mount_data_version() MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Address compiler warning: mount.c: In function discover_nfs_mount_data_version¿: mount.c:162: warning: comparison between signed and unsigned mount.c:164: warning: comparison between signed and unsigned mount.c:166: warning: comparison between signed and unsigned mount.c:168: warning: comparison between signed and unsigned mount.c:170: warning: comparison between signed and unsigned mount.c:178: warning: comparison between signed and unsigned linux_version_code() and MAKE_VERSION() both return an unsigned int. Signed-off-by: Chuck Lever Signed-off-by: Steve Dickson --- utils/mount/mount.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/mount/mount.c b/utils/mount/mount.c index 06e2804..d531d64 100644 --- a/utils/mount/mount.c +++ b/utils/mount/mount.c @@ -156,7 +156,7 @@ static void parse_opts(const char *options, int *flags, char **extra_opts); */ static void discover_nfs_mount_data_version(void) { - int kernel_version = linux_version_code(); + unsigned int kernel_version = linux_version_code(); if (kernel_version) { if (kernel_version < MAKE_VERSION(2, 1, 32)) -- 2.39.5