From 23164d134e0dab8eb5c3b471ae3f087f1cd9968a Mon Sep 17 00:00:00 2001 From: Chuck Lever Date: Tue, 30 Oct 2012 14:55:29 -0400 Subject: [PATCH] mountd: Avoid unnecessary type conversions Removed a Wsign-conversion warning Signed-off-by: Chuck Lever Signed-off-by: Steve Dickson --- utils/mountd/cache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/mountd/cache.c b/utils/mountd/cache.c index 64ca5ba..fbaa28e 100644 --- a/utils/mountd/cache.c +++ b/utils/mountd/cache.c @@ -758,7 +758,7 @@ static int dump_to_cache(FILE *f, char *domain, char *path, struct exportent *ex static int is_subdirectory(char *child, char *parent) { - int l = strlen(parent); + size_t l = strlen(parent); return strcmp(child, parent) == 0 || (strncmp(child, parent, l) == 0 && child[l] == '/'); -- 2.39.5