summaryrefslogtreecommitdiff
path: root/python/header-py.c
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2008-02-05 17:42:19 +0200
committerPanu Matilainen <pmatilai@redhat.com>2008-02-05 17:42:19 +0200
commitd718b12f5bf5b94c418b8235e45625cbccca6220 (patch)
tree18c6fe59a6b06b2b1092a1c2e6f67f8657f27cc6 /python/header-py.c
parent53ca9c775f5f3954f140f462d22bb28cde02c6cd (diff)
downloadlibrpm-tizen-d718b12f5bf5b94c418b8235e45625cbccca6220.tar.gz
librpm-tizen-d718b12f5bf5b94c418b8235e45625cbccca6220.tar.bz2
librpm-tizen-d718b12f5bf5b94c418b8235e45625cbccca6220.zip
Mass convert (back) to rpmTag as it's usable everywhere now
- cast away a few cases where the enum usage causes ridiculous amount of compiler warnings from unhandled switch-cases
Diffstat (limited to 'python/header-py.c')
-rw-r--r--python/header-py.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/python/header-py.c b/python/header-py.c
index 5cc1abab8..173b2f490 100644
--- a/python/header-py.c
+++ b/python/header-py.c
@@ -143,7 +143,7 @@ static PyObject * hdrKeyList(hdrObject * s)
{
PyObject * list, *o;
HeaderIterator hi;
- rpm_tag_t tag;
+ rpmTag tag;
rpmTagType type;
list = PyList_New(0);
@@ -336,7 +336,7 @@ static void hdr_dealloc(hdrObject * s)
/** \ingroup py_c
*/
-rpm_tag_t tagNumFromPyObject (PyObject *item)
+rpmTag tagNumFromPyObject (PyObject *item)
{
char * str;
@@ -362,7 +362,7 @@ rpm_tag_t tagNumFromPyObject (PyObject *item)
* @retval c address of number of values
* @return 0 on success, 1 on bad magic, 2 on error
*/
-static int dressedHeaderGetEntry(Header h, rpm_tag_t tag, rpmTagType *type,
+static int dressedHeaderGetEntry(Header h, rpmTag tag, rpmTagType *type,
void **p, rpm_count_t *c)
{
switch (tag) {
@@ -414,7 +414,7 @@ static int dressedHeaderGetEntry(Header h, rpm_tag_t tag, rpmTagType *type,
static PyObject * hdr_subscript(hdrObject * s, PyObject * item)
{
rpmTagType tagtype, type;
- rpm_tag_t tag = RPMTAG_NOT_FOUND;
+ rpmTag tag = RPMTAG_NOT_FOUND;
rpm_count_t count, i;
rpm_data_t data;
PyObject * o, * metao;
@@ -780,7 +780,7 @@ int rpmMergeHeaders(PyObject * list, FD_t fd, int matchTag)
int32_t * oldMatch;
hdrObject * hdr;
rpm_count_t c, count = 0;
- rpm_tag_t tag;
+ rpmTag tag;
rpmTagType type;
void * p;