aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--URPM.xs4
1 files changed, 0 insertions, 4 deletions
diff --git a/URPM.xs b/URPM.xs
index 2c9b7b8..63d3671 100644
--- a/URPM.xs
+++ b/URPM.xs
@@ -641,12 +641,10 @@ return_files(Header header, int filter_mode) {
struct rpmtd_s td_flags, td_fmodes;
int32_t *flags = NULL;
- uint16_t *fmodes = NULL;
if (filter_mode) {
headerGet(header, RPMTAG_FILEFLAGS, &td_flags, HEADERGET_DEFAULT);
headerGet(header, RPMTAG_FILEMODES, &td_fmodes, HEADERGET_DEFAULT);
flags = td_flags.data;
- fmodes = td_fmodes.data;
}
struct rpmtd_s td_baseNames, td_dirIndexes, td_dirNames, td_list;
@@ -1227,10 +1225,8 @@ update_header(char *filename, URPM__Package pkg, __attribute__((unused)) int kee
rpmtsSetVSFlags(ts, _RPMVSF_NOSIGNATURES | vsflags);
if (fd != NULL && rpmReadPackageFile(ts, fd, filename, &header) == 0 && header) {
char *basename;
- int32_t size;
basename = strrchr(filename, '/');
- size = fdSize(fd);
Fclose(fd);
/* this is only kept for compatibility with older distros