summaryrefslogtreecommitdiff
path: root/rpm2cpio.c
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2009-09-02 13:06:25 +0300
committerPanu Matilainen <pmatilai@redhat.com>2009-09-02 13:06:25 +0300
commit4149dfa7fedf79b28293a2b62400094de646d95d (patch)
tree8d27a4ec46bf44ffe9992b91a5aeacd8e3a90c02 /rpm2cpio.c
parente725cbe155f09c01ad2bc1dda64911ed81db6538 (diff)
downloadrpm-4149dfa7fedf79b28293a2b62400094de646d95d.tar.gz
rpm-4149dfa7fedf79b28293a2b62400094de646d95d.tar.bz2
rpm-4149dfa7fedf79b28293a2b62400094de646d95d.zip
Take advantage of new header string getters
Diffstat (limited to 'rpm2cpio.c')
-rw-r--r--rpm2cpio.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/rpm2cpio.c b/rpm2cpio.c
index 92de0faf0..6c29cab5b 100644
--- a/rpm2cpio.c
+++ b/rpm2cpio.c
@@ -70,13 +70,8 @@ int main(int argc, char *argv[])
}
/* Retrieve type of payload compression. */
- { const char *compr = NULL;
- struct rpmtd_s pc;
-
- headerGet(h, RPMTAG_PAYLOADCOMPRESSOR, &pc, HEADERGET_DEFAULT);
- compr = rpmtdGetString(&pc);
+ { const char *compr = headerGetString(h, RPMTAG_PAYLOADCOMPRESSOR);
rpmio_flags = rstrscat(NULL, "r.", compr ? compr : "gzip", NULL);
- rpmtdFreeData(&pc);
}
gzdi = Fdopen(fdi, rpmio_flags); /* XXX gzdi == fdi */