mount.nfs: Use correct data type in discover_nfs_mount_data_version()
authorChuck Lever <chuck.lever@oracle.com>
Tue, 14 Jul 2009 20:48:50 +0000 (16:48 -0400)
committerSteve Dickson <steved@redhat.com>
Tue, 14 Jul 2009 20:48:50 +0000 (16:48 -0400)
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 <chuck.lever@oracle.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
utils/mount/mount.c

index 06e2804..d531d64 100644 (file)
@@ -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))