libxbps: fixed all warnings found by clang.

--HG--
extra : convert_revision : xtraeme%40gmail.com-20100428213056-p1b7bh0llq8393r0
This commit is contained in:
Juan RP
2010-04-28 23:30:56 +02:00
parent 7976ac3707
commit 28f997bdf7
8 changed files with 15 additions and 33 deletions

View File

@ -97,14 +97,14 @@ unpack_archive_fini(struct archive *ar, prop_dictionary_t pkg)
size_t entry_idx = 0;
const char *pkgname, *version, *rootdir, *entry_str, *transact;
char *buf;
int rv = 0, flags, lflags;
bool preserve, actgt, skip_entry, update;
int rv, flags, lflags;
bool preserve, skip_entry, update;
bool props_plist_found, files_plist_found;
assert(ar != NULL);
assert(pkg != NULL);
preserve = actgt = skip_entry = update = false;
preserve = skip_entry = update = false;
props_plist_found = files_plist_found = false;
rootdir = xbps_get_rootdir();
flags = xbps_get_flags();
@ -173,7 +173,6 @@ unpack_archive_fini(struct archive *ar, prop_dictionary_t pkg)
if (buf == NULL)
return errno;
actgt = true;
archive_entry_set_pathname(entry, buf);
archive_entry_set_mode(entry, 0750);
@ -298,7 +297,6 @@ unpack_archive_fini(struct archive *ar, prop_dictionary_t pkg)
"path: %s\n",
archive_entry_pathname(entry));
}
rv = 0;
continue;
}
}