summaryrefslogtreecommitdiff
path: root/rpmdb/header.c
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2008-03-18 09:10:13 +0200
committerPanu Matilainen <pmatilai@redhat.com>2008-03-18 09:10:13 +0200
commitc908277be21c27a0894404821605134958521fd6 (patch)
treecf247a2a6753c527a7985aeeeb4b0dee3b4626b8 /rpmdb/header.c
parent9df54a8622b6640e54288835e62c6c0d0b23c748 (diff)
downloadlibrpm-tizen-c908277be21c27a0894404821605134958521fd6.tar.gz
librpm-tizen-c908277be21c27a0894404821605134958521fd6.tar.bz2
librpm-tizen-c908277be21c27a0894404821605134958521fd6.zip
Minimal namespacing for locale-insensitive x*() string functions
Diffstat (limited to 'rpmdb/header.c')
-rw-r--r--rpmdb/header.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/rpmdb/header.c b/rpmdb/header.c
index 18b7aa828..3a3f80c82 100644
--- a/rpmdb/header.c
+++ b/rpmdb/header.c
@@ -1996,7 +1996,7 @@ static const char * myTagName(headerTagTableEntry tbl, int val)
t = name;
*t++ = *s++;
while (*s != '\0')
- *t++ = xtolower(*s++);
+ *t++ = rtolower(*s++);
*t = '\0';
return name;
}
@@ -2011,7 +2011,7 @@ static const char * myTagName(headerTagTableEntry tbl, int val)
static int myTagValue(headerTagTableEntry tbl, const char * name)
{
for (; tbl->name != NULL; tbl++) {
- if (!xstrcasecmp(tbl->name, name))
+ if (!rstrcasecmp(tbl->name, name))
return tbl->val;
}
return 0;
@@ -2052,7 +2052,7 @@ static int findTag(headerSprintfArgs hsa, sprintfToken token, const char * name)
{
if (ext->name == NULL || ext->type != HEADER_EXT_TAG)
continue;
- if (!xstrcasecmp(ext->name, name)) {
+ if (!rstrcasecmp(ext->name, name)) {
stag->ext = ext->u.tagFunction;
stag->extNum = ext - hsa->exts;
goto bingo;
@@ -2178,7 +2178,7 @@ static int parseFormat(headerSprintfArgs hsa, char * str,
*chptr++ = '\0';
while (start < chptr) {
- if (xisdigit(*start)) {
+ if (risdigit(*start)) {
i = strtoul(start, &start, 10);
token->u.tag.pad += i;
start = chptr;