summaryrefslogtreecommitdiff
path: root/python/header-py.c
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2011-11-30 09:50:03 +0200
committerPanu Matilainen <pmatilai@redhat.com>2011-11-30 11:03:54 +0200
commiteae671556470136c37951f53ca966cd1bd09aac4 (patch)
treed2c0840c58eedabae9070a26b62828d7cba416ea /python/header-py.c
parent359baa2831dd1850cba3a1cc8d31aebf883a5138 (diff)
downloadlibrpm-tizen-eae671556470136c37951f53ca966cd1bd09aac4.tar.gz
librpm-tizen-eae671556470136c37951f53ca966cd1bd09aac4.tar.bz2
librpm-tizen-eae671556470136c37951f53ca966cd1bd09aac4.zip
Update internal callers to use headerExport(), no functional changes
Diffstat (limited to 'python/header-py.c')
-rw-r--r--python/header-py.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/python/header-py.c b/python/header-py.c
index ba6a94934..96cf20001 100644
--- a/python/header-py.c
+++ b/python/header-py.c
@@ -150,7 +150,7 @@ static PyObject * hdrAsBytes(hdrObject * s, int legacy)
{
PyObject *res = NULL;
char *buf = NULL;
- size_t len;
+ unsigned int len;
Header h = headerLink(s->h);
/* XXX this legacy switch is a hack, needs to be removed. */
@@ -158,8 +158,7 @@ static PyObject * hdrAsBytes(hdrObject * s, int legacy)
h = headerCopy(s->h); /* XXX strip region tags, etc */
headerFree(s->h);
}
- len = headerSizeof(h, HEADER_MAGIC_NO);
- buf = headerUnload(h);
+ buf = headerExport(h, &len);
h = headerFree(h);
if (buf == NULL || len == 0) {