Avoid stepping on toes of relatives, part 4

- Eliminate remaining (hopefully) C++ reserved keywords in librpm
This commit is contained in:
Panu Matilainen 2010-09-21 15:08:08 +03:00
parent c60bf8f766
commit 0e4d3de131
1 changed files with 6 additions and 6 deletions

View File

@ -74,7 +74,7 @@ typedef struct _dbiIndexSet {
size_t alloced; /*!< alloced size */
} * dbiIndexSet;
static unsigned int pkgInstance(dbiIndex dbi, int new);
static unsigned int pkgInstance(dbiIndex dbi, int alloc);
static rpmdb rpmdbUnlink(rpmdb db);
/* Bit mask macros. */
@ -593,7 +593,7 @@ int rpmdbOpenAll(rpmdb db)
}
static int dbiForeach(dbiIndex *dbis,
int (*func) (dbiIndex, unsigned int), int delete)
int (*func) (dbiIndex, unsigned int), int del)
{
int xx, rc = 0;
for (int dbix = dbiTagsMax; --dbix >= 0; ) {
@ -601,7 +601,7 @@ static int dbiForeach(dbiIndex *dbis,
continue;
xx = func(dbis[dbix], 0);
if (xx && rc == 0) rc = xx;
if (delete)
if (del)
dbis[dbix] = NULL;
}
return rc;
@ -2361,7 +2361,7 @@ cont:
}
/* Get current header instance number or try to allocate a new one */
static unsigned int pkgInstance(dbiIndex dbi, int new)
static unsigned int pkgInstance(dbiIndex dbi, int alloc)
{
unsigned int hdrNum = 0;
@ -2375,7 +2375,7 @@ static unsigned int pkgInstance(dbiIndex dbi, int new)
memset(&key, 0, sizeof(key));
memset(&data, 0, sizeof(data));
ret = dbiCopen(dbi, &dbcursor, new ? DB_WRITECURSOR : 0);
ret = dbiCopen(dbi, &dbcursor, alloc ? DB_WRITECURSOR : 0);
/* Key 0 holds the current largest instance, fetch it */
key.data = &firstkey;
@ -2389,7 +2389,7 @@ static unsigned int pkgInstance(dbiIndex dbi, int new)
hdrNum = mi_offset.ui;
}
if (new) {
if (alloc) {
/* Rather complicated "increment by one", bswapping as needed */
++hdrNum;
mi_offset.ui = hdrNum;