summaryrefslogtreecommitdiff
path: root/build/pack.c
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2007-12-19 12:05:56 +0200
committerPanu Matilainen <pmatilai@redhat.com>2007-12-19 12:05:56 +0200
commitaddac6a86be1a6c7a668f97c9d7a0d85277f6779 (patch)
treee98781d978fe0fac926f44c1609ba5cfb2bf11b6 /build/pack.c
parent44c90ce3f0c5f4686338b4b746b9bece8510d757 (diff)
downloadlibrpm-tizen-addac6a86be1a6c7a668f97c9d7a0d85277f6779.tar.gz
librpm-tizen-addac6a86be1a6c7a668f97c9d7a0d85277f6779.tar.bz2
librpm-tizen-addac6a86be1a6c7a668f97c9d7a0d85277f6779.zip
Add rpm_data_t (and _constdata_t) for header data, use everywhere
- consistent, easy to grep for and change... - bogus consts removed where spotted
Diffstat (limited to 'build/pack.c')
-rw-r--r--build/pack.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/build/pack.c b/build/pack.c
index 34a3e152d..c6f3d7951 100644
--- a/build/pack.c
+++ b/build/pack.c
@@ -151,7 +151,7 @@ static int addFileToTag(rpmSpec spec, const char * file, Header h, rpm_tag_t tag
StringBuf sb = newStringBuf();
char *s;
- if (hge(h, tag, NULL, (void **)&s, NULL)) {
+ if (hge(h, tag, NULL, (rpm_data_t *)&s, NULL)) {
appendLineStringBuf(sb, s);
(void) headerRemoveEntry(h, tag);
}
@@ -567,7 +567,7 @@ exit:
unsigned char * MD5 = NULL;
rpm_count_t c;
int xx;
- xx = headerGetEntry(sig, RPMSIGTAG_MD5, &tagType, (void **)&MD5, &c);
+ xx = headerGetEntry(sig, RPMSIGTAG_MD5, &tagType, (rpm_data_t *)&MD5, &c);
if (tagType == RPM_BIN_TYPE && MD5 != NULL && c == 16)
*pkgidp = MD5;
}