]> git.decadent.org.uk Git - nfs-utils.git/commitdiff
mountd: Avoid unnecessary type conversions
authorChuck Lever <chuck.lever@oracle.com>
Tue, 30 Oct 2012 18:55:29 +0000 (14:55 -0400)
committerSteve Dickson <steved@redhat.com>
Tue, 30 Oct 2012 19:30:08 +0000 (15:30 -0400)
Removed a Wsign-conversion warning

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
utils/mountd/cache.c

index 64ca5ba3fee1d561ad1cf0042585cea82dbf937a..fbaa28eb8b0f2d339429ce983e154f64a011289f 100644 (file)
@@ -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] == '/');