From 3b8da4ed118c6da6dab1cb7c0ecd0933c6d14f14 Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Thu, 20 Sep 2007 15:09:52 +0300 Subject: Rename tagName/Value/Type() to rpmTagGet*() - namespacing - avoid collisions with tagtype definitions --- python/header-py.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'python/header-py.c') diff --git a/python/header-py.c b/python/header-py.c index 4e2b83070..feccf180c 100644 --- a/python/header-py.c +++ b/python/header-py.c @@ -357,7 +357,7 @@ long tagNumFromPyObject (PyObject *item) return PyInt_AsLong(item); } else if (PyString_Check(item)) { str = PyString_AsString(item); - return tagValue(str); + return rpmTagGetValue(str); } return -1; } @@ -401,7 +401,7 @@ static int dressedHeaderGetEntry(Header h, int_32 tag, int_32 *type, const char * errstr; fmt[0] = '\0'; - (void) stpcpy( stpcpy( stpcpy( fmt, "%{"), tagName(tag)), "}\n"); + (void) stpcpy( stpcpy( stpcpy( fmt, "%{"), rpmTagGetName(tag)), "}\n"); /* XXX FIXME: memory leak. */ msgstr = headerSprintf(h, fmt, rpmTagTable, rpmHeaderFormats, &errstr); @@ -480,7 +480,7 @@ static PyObject * hdr_subscript(hdrObject * s, PyObject * item) } } - tagtype = tagType(tag); + tagtype = rpmTagGetType(tag); #if NOTYET /* this blows up with header extension types */ type = tagtype & RPM_MASK_TYPE; -- cgit v1.2.3