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@xxxxxxxxxx> --- utils/mount/version.h | 6 +++--- 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); } -- 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