From: Chuck Lever Date: Tue, 30 Oct 2012 18:05:11 +0000 (-0400) Subject: mountd: Eliminate unnecessary type conversions X-Git-Tag: debian/1%1.2.8-1~11^2^2~76 X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=a543ffd62ceade54ad0663765ae2909b6be361f9;p=nfs-utils.git mountd: Eliminate unnecessary type conversions Removed a copule Wsign-conversion in the mountd code. Signed-off-by: Steve Dickson --- 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