summaryrefslogtreecommitdiff
path: root/lib/rpmte.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 /lib/rpmte.c
parentcbd7a684a4cd88bfa3383658790be3c37230707a (diff)
downloadrpm-7e56c6355bea552d89e8d5d0a317763a8cee4a4f.tar.gz
rpm-7e56c6355bea552d89e8d5d0a317763a8cee4a4f.tar.bz2
rpm-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 'lib/rpmte.c')
-rw-r--r--lib/rpmte.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/rpmte.c b/lib/rpmte.c
index bbbe6dd1f..1fe8c3a1e 100644
--- a/lib/rpmte.c
+++ b/lib/rpmte.c
@@ -470,7 +470,7 @@ fnpyKey rpmteKey(rpmte te)
return (te != NULL ? te->key : NULL);
}
-rpmds rpmteDS(rpmte te, rpmTag tag)
+rpmds rpmteDS(rpmte te, rpm_tag_t tag)
{
if (te == NULL)
return NULL;
@@ -493,7 +493,7 @@ rpmds rpmteDS(rpmte te, rpmTag tag)
return NULL;
}
-rpmfi rpmteFI(rpmte te, rpmTag tag)
+rpmfi rpmteFI(rpmte te, rpm_tag_t tag)
{
if (te == NULL)
return NULL;
@@ -504,7 +504,7 @@ rpmfi rpmteFI(rpmte te, rpmTag tag)
return NULL;
}
-void rpmteColorDS(rpmte te, rpmTag tag)
+void rpmteColorDS(rpmte te, rpm_tag_t tag)
{
rpmfi fi = rpmteFI(te, RPMTAG_BASENAMES);
rpmds ds = rpmteDS(te, tag);