summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2012-10-30 14:55:29 -0400
committerSteve Dickson <steved@redhat.com>2012-10-30 15:30:08 -0400
commit23164d134e0dab8eb5c3b471ae3f087f1cd9968a (patch)
treee3c0daa57af1c0f2984e029d8e48e89bb00b5e39
parentd8b5dc74c5aa258a937b3b3d74366f997ffd6d7f (diff)
downloadnfs-utils-23164d134e0dab8eb5c3b471ae3f087f1cd9968a.zip
nfs-utils-23164d134e0dab8eb5c3b471ae3f087f1cd9968a.tar.gz
nfs-utils-23164d134e0dab8eb5c3b471ae3f087f1cd9968a.tar.xz
mountd: Avoid unnecessary type conversions
Removed a Wsign-conversion warning Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Steve Dickson <steved@redhat.com>
-rw-r--r--utils/mountd/cache.c2
1 files changed, 1 insertions, 1 deletions
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] == '/');