pacman/query.c: in query_fileowner, make is_dir an int

S_ISDIR is int and "returns non-zero" if the file is a directory.

Signed-off-by: Ivy Foster <iff@escondida.tk>
Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
Ivy Foster 2018-01-25 14:56:38 -06:00 committed by Allan McRae
parent a278356f75
commit 640c2462bb

View file

@ -158,8 +158,9 @@ static int query_fileowner(alpm_list_t *targets)
char rpath[PATH_MAX], *rel_path;
struct stat buf;
alpm_list_t *i;
size_t len, is_dir;
size_t len;
unsigned int found = 0;
int is_dir;
if((filename = strdup(t->data)) == NULL) {
goto targcleanup;