summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
d8b5dc7)
Removed a Wsign-conversion warning
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
static int is_subdirectory(char *child, char *parent)
{
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] == '/');
return strcmp(child, parent) == 0
|| (strncmp(child, parent, l) == 0 && child[l] == '/');