summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2012-10-30 14:05:11 -0400
committerSteve Dickson <steved@redhat.com>2012-10-30 15:30:08 -0400
commita543ffd62ceade54ad0663765ae2909b6be361f9 (patch)
tree5227b728c0ec76d8fce8559cb576e8e15d0edda5
parent7df8ca883bfd668eb559ea1b8da7c7b6e41d5b1a (diff)
downloadnfs-utils-a543ffd62ceade54ad0663765ae2909b6be361f9.zip
nfs-utils-a543ffd62ceade54ad0663765ae2909b6be361f9.tar.gz
nfs-utils-a543ffd62ceade54ad0663765ae2909b6be361f9.tar.xz
mountd: Eliminate unnecessary type conversions
Removed a copule Wsign-conversion in the mountd code. Signed-off-by: Steve Dickson <steved@redhat.com>
-rw-r--r--utils/mountd/cache.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/mountd/cache.c b/utils/mountd/cache.c
index 6de05f1..70e1aa4 100644
--- a/utils/mountd/cache.c
+++ b/utils/mountd/cache.c
@@ -329,7 +329,7 @@ static char *next_mnt(void **v, char *p)
{
FILE *f;
struct mntent *me;
- int l = strlen(p);
+ size_t l = strlen(p);
if (*v == NULL) {
f = setmntent("/etc/mtab", "r");
*v = f;
@@ -351,7 +351,7 @@ static char *next_mnt(void **v, char *p)
static bool subexport(struct exportent *e1, struct exportent *e2)
{
char *p1 = e1->e_path, *p2 = e2->e_path;
- int l2 = strlen(p2);
+ size_t l2 = strlen(p2);
return e2->e_flags & NFSEXP_CROSSMOUNT
&& strncmp(p1, p2, l2) == 0