From: Chuck Lever Date: Tue, 14 Jul 2009 20:48:50 +0000 (-0400) Subject: mount.nfs: Use correct data type in discover_nfs_mount_data_version() X-Git-Tag: nfs-utils-1-2-1-rc2~10 X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=4fc8cacd748d59dd3f463148994700bdd7610908;p=nfs-utils.git mount.nfs: Use correct data type in discover_nfs_mount_data_version() 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 --- 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))