From: Chuck Lever Date: Tue, 30 Oct 2012 18:55:29 +0000 (-0400) Subject: mountd: Avoid unnecessary type conversions X-Git-Tag: debian/1%1.2.8-1~11^2^2~73 X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=23164d134e0dab8eb5c3b471ae3f087f1cd9968a;p=nfs-utils.git mountd: Avoid unnecessary type conversions Removed a Wsign-conversion warning Signed-off-by: Chuck Lever Signed-off-by: Steve Dickson --- 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] == '/');