X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fwgtpkg-files.c;h=503a84bdd73940a31c9c37870aecf3d6d94c65b0;hb=3a6e947bef1b2942e24d2fdee1a76dbf3305b508;hp=cbd60488ba65e91be432a70628ad538ceecbd1e1;hpb=189415eece11c543e1ccb95dff32695ddc383565;p=src%2Fapp-framework-main.git diff --git a/src/wgtpkg-files.c b/src/wgtpkg-files.c index cbd6048..503a84b 100644 --- a/src/wgtpkg-files.c +++ b/src/wgtpkg-files.c @@ -1,5 +1,5 @@ /* - Copyright 2015 IoT.bzh + Copyright 2015, 2016, 2017 IoT.bzh author: José Bollo @@ -252,9 +252,10 @@ void file_clear_flags() allfiles.files[i]->flags &= flag_signature; } -static int fill_files_rec(char name[PATH_MAX], int offset) +static int fill_files_rec(char name[PATH_MAX], unsigned offset) { - int len, err, fd; + int err, fd; + unsigned len; DIR *dir; struct dirent *ent; @@ -274,7 +275,7 @@ static int fill_files_rec(char name[PATH_MAX], int offset) ent = readdir(dir); while (ent != NULL) { - len = strlen(ent->d_name); + len = (unsigned)strlen(ent->d_name); if (ent->d_name[0] == '.' && (len == 1 || (ent->d_name[1] == '.' && len == 2))) ;