summaryrefslogtreecommitdiff
path: root/build/parsePreamble.c
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2007-12-13 20:35:33 +0200
committerPanu Matilainen <pmatilai@redhat.com>2007-12-13 20:35:33 +0200
commit1e96ead46670088e6b867cc989eadbef092d5864 (patch)
tree6a884ee7056ff9d8ceb3161dd0b1b758c0a078a2 /build/parsePreamble.c
parent7e56c6355bea552d89e8d5d0a317763a8cee4a4f (diff)
downloadlibrpm-tizen-1e96ead46670088e6b867cc989eadbef092d5864.tar.gz
librpm-tizen-1e96ead46670088e6b867cc989eadbef092d5864.tar.bz2
librpm-tizen-1e96ead46670088e6b867cc989eadbef092d5864.zip
Use rpm_tagtype_t everywhere for rpm (header) tagtype type
- typedef'ed as uint32_t, doesn't matter much but negative types dont exist - easy to grep, easy to change... - define RPM_FORCEFREE_TYPE instead of -1 "magic" for forcing headerFreeData (ugh), easier to grep for and change than "-1"
Diffstat (limited to 'build/parsePreamble.c')
-rw-r--r--build/parsePreamble.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/build/parsePreamble.c b/build/parsePreamble.c
index 7c8d7996b..2da6d148a 100644
--- a/build/parsePreamble.c
+++ b/build/parsePreamble.c
@@ -192,7 +192,7 @@ static int isMemberInEntry(Header h, const char *name, rpm_tag_t tag)
HGE_t hge = (HGE_t)headerGetEntryMinMemory;
HFD_t hfd = headerFreeData;
const char ** names;
- rpmTagType type;
+ rpm_tagtype_t type;
rpm_count_t count;
if (!hge(h, tag, &type, (void **)&names, &count))
@@ -427,7 +427,7 @@ static int handlePreambleTag(rpmSpec spec, Package pkg, rpm_tag_t tag,
char ** array;
int multiToken = 0;
rpmsenseFlags tagflags;
- rpmTagType type;
+ rpm_tagtype_t type;
int len;
rpm_count_t num;
int rc;