]> git.decadent.org.uk Git - nfs-utils.git/commitdiff
mountd: Eliminate unnecessary type conversions
authorChuck Lever <chuck.lever@oracle.com>
Tue, 30 Oct 2012 18:05:11 +0000 (14:05 -0400)
committerSteve Dickson <steved@redhat.com>
Tue, 30 Oct 2012 19:30:08 +0000 (15:30 -0400)
Removed a copule Wsign-conversion in the mountd code.

Signed-off-by: Steve Dickson <steved@redhat.com>
utils/mountd/cache.c

index 6de05f111eb5a76029c831f4a244be4bdb36a32a..70e1aa4629084cb2970e61fcb6898b6ed99cf261 100644 (file)
@@ -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