summaryrefslogtreecommitdiff
path: root/build/reqprov.c
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2007-12-13 19:32:37 +0200
committerPanu Matilainen <pmatilai@redhat.com>2007-12-13 19:32:37 +0200
commit7e56c6355bea552d89e8d5d0a317763a8cee4a4f (patch)
treec18ddebb9e8e6da144d00909c61fdcecdf718057 /build/reqprov.c
parentcbd7a684a4cd88bfa3383658790be3c37230707a (diff)
downloadlibrpm-tizen-7e56c6355bea552d89e8d5d0a317763a8cee4a4f.tar.gz
librpm-tizen-7e56c6355bea552d89e8d5d0a317763a8cee4a4f.tar.bz2
librpm-tizen-7e56c6355bea552d89e8d5d0a317763a8cee4a4f.zip
Use rpm_tag_t everywhere for rpm (header) tag type
- typedef'ed as int32_t for now, negative values used in some places for error cases - easy to grep, easy to change... - add RPMTAG_NOT_FOUND define, used in place of -1 "magic",
Diffstat (limited to 'build/reqprov.c')
-rw-r--r--build/reqprov.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/build/reqprov.c b/build/reqprov.c
index b9ef8b342..b024fafb6 100644
--- a/build/reqprov.c
+++ b/build/reqprov.c
@@ -8,7 +8,7 @@
#include <rpm/rpmbuild.h>
#include "debug.h"
-int addReqProv(rpmSpec spec, Header h, rpmTag tagN,
+int addReqProv(rpmSpec spec, Header h, rpm_tag_t tagN,
const char * N, const char * EVR, rpmsenseFlags Flags,
int index)
{
@@ -16,10 +16,10 @@ int addReqProv(rpmSpec spec, Header h, rpmTag tagN,
HFD_t hfd = headerFreeData;
const char ** names;
rpmTagType dnt;
- rpmTag nametag = 0;
- rpmTag versiontag = 0;
- rpmTag flagtag = 0;
- rpmTag indextag = 0;
+ rpm_tag_t nametag = 0;
+ rpm_tag_t versiontag = 0;
+ rpm_tag_t flagtag = 0;
+ rpm_tag_t indextag = 0;
rpm_count_t len;
rpmsenseFlags extra = RPMSENSE_ANY;
int xx;