From a543ffd62ceade54ad0663765ae2909b6be361f9 Mon Sep 17 00:00:00 2001 From: Chuck Lever Date: Tue, 30 Oct 2012 14:05:11 -0400 Subject: [PATCH] mountd: Eliminate unnecessary type conversions Removed a copule Wsign-conversion in the mountd code. Signed-off-by: Steve Dickson --- utils/mountd/cache.c | 4 ++-- 1 file 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 -- 2.39.5