summaryrefslogtreecommitdiffstats
path: root/utils/mount
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2010-10-13 11:50:57 -0400
committerSteve Dickson <steved@redhat.com>2010-10-14 10:26:59 -0400
commit47480475c99335c1203e81662f815b62573c19e8 (patch)
treecc4564ec308a41a85a7e2a110954bec100a4fe35 /utils/mount
parent00885013dccbe00f5cc4e19223cf18e85a8e616a (diff)
downloadnfs-utils-47480475c99335c1203e81662f815b62573c19e8.tar.gz
nfs-utils-47480475c99335c1203e81662f815b62573c19e8.tar.xz
nfs-utils-47480475c99335c1203e81662f815b62573c19e8.zip
mount.nfs: Eliminate compiler warnings in utils/mount/version.h
Clean up. In file included from mount.c:50: version.h: In function linux_version_code: version.h:48: warning: conversion to unsigned int from int may change the sign of the result version.h:48: warning: conversion to unsigned int from int may change the sign of the result version.h:48: warning: conversion to unsigned int from int may change the sign of the result Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'utils/mount')
-rw-r--r--utils/mount/version.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/utils/mount/version.h b/utils/mount/version.h
index 46552a1..af61a6f 100644
--- a/utils/mount/version.h
+++ b/utils/mount/version.h
@@ -42,9 +42,9 @@ static inline unsigned int linux_version_code(void)
if (uname(&my_utsname))
return 0;
- p = atoi(strtok(my_utsname.release, "."));
- q = atoi(strtok(NULL, "."));
- r = atoi(strtok(NULL, "."));
+ p = (unsigned int)atoi(strtok(my_utsname.release, "."));
+ q = (unsigned int)atoi(strtok(NULL, "."));
+ r = (unsigned int)atoi(strtok(NULL, "."));
return MAKE_VERSION(p, q, r);
}