]> git.decadent.org.uk Git - nfs-utils.git/commit
mount.nfs: Eliminate compiler warnings in utils/mount/mount.c
authorChuck Lever <chuck.lever@oracle.com>
Wed, 13 Oct 2010 15:54:49 +0000 (11:54 -0400)
committerSteve Dickson <steved@redhat.com>
Thu, 14 Oct 2010 14:26:59 +0000 (10:26 -0400)
commite2b6d9cbaf20df26dd371a715fce3ae158f37126
tree70171a6523fae4c37f9ef8a6dfa90f71df014466
parent013e8ec9ffb9f28f97e58299719023faf846a029
mount.nfs: Eliminate compiler warnings in utils/mount/mount.c

Clean up.

mount.c: In function parse_opt:
mount.c:354: warning: conversion to size_t from int may change the
    sign of the result
mount.c:354: warning: conversion to int from size_t may change the
    sign of the result
mount.c:359: warning: conversion to size_t from int may change the
    sign of the result
mount.c:359: warning: conversion to int from size_t may change the
    sign of the result
mount.c: In function parse_opts:
mount.c:374: warning: conversion to int from size_t may change the
    sign of the result
mount.c:377: warning: conversion to size_t from int may change the
    sign of the result

Character string lengths are usually size_t anyway.  We can easily
avoid the implicit type cast here.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
utils/mount/mount.c