summaryrefslogtreecommitdiff
path: root/rpmdb
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2007-07-12 12:30:26 +0300
committerPanu Matilainen <pmatilai@redhat.com>2007-07-12 12:30:26 +0300
commite12cf3d1cc653dfac7bb7fe3f9aa801ab0536c88 (patch)
tree62304878f4b18bf4024e14bc1ca2cbb4187443b5 /rpmdb
parentcce81e1fa00d98dc97b6a9daa6b8b55437933ff8 (diff)
downloadrpm-e12cf3d1cc653dfac7bb7fe3f9aa801ab0536c88.tar.gz
rpm-e12cf3d1cc653dfac7bb7fe3f9aa801ab0536c88.tar.bz2
rpm-e12cf3d1cc653dfac7bb7fe3f9aa801ab0536c88.zip
Use uint_32 for dirindexes everywhere
Diffstat (limited to 'rpmdb')
-rw-r--r--rpmdb/fprint.c4
-rw-r--r--rpmdb/fprint.h2
-rw-r--r--rpmdb/legacy.c4
-rw-r--r--rpmdb/rpmdb.c6
4 files changed, 8 insertions, 8 deletions
diff --git a/rpmdb/fprint.c b/rpmdb/fprint.c
index 2244a91e5..1d5bf40fd 100644
--- a/rpmdb/fprint.c
+++ b/rpmdb/fprint.c
@@ -234,7 +234,7 @@ int fpEqual(const void * key1, const void * key2)
/*@-bounds@*/
void fpLookupList(fingerPrintCache cache, const char ** dirNames,
- const char ** baseNames, const int * dirIndexes,
+ const char ** baseNames, const uint_32 * dirIndexes,
int fileCount, fingerPrint * fpList)
{
int i;
@@ -270,7 +270,7 @@ void fpLookupHeader(fingerPrintCache cache, Header h, fingerPrint * fpList)
HFD_t hfd = headerFreeData;
const char ** baseNames, ** dirNames;
rpmTagType bnt, dnt;
- int_32 * dirIndexes;
+ uint_32 * dirIndexes;
int fileCount;
int xx;
diff --git a/rpmdb/fprint.h b/rpmdb/fprint.h
index 79bb7e443..09ef526f3 100644
--- a/rpmdb/fprint.h
+++ b/rpmdb/fprint.h
@@ -140,7 +140,7 @@ int fpEqual(const void * key1, const void * key2)
* @retval fpList pointer to array of finger prints
*/
void fpLookupList(fingerPrintCache cache, const char ** dirNames,
- const char ** baseNames, const int * dirIndexes,
+ const char ** baseNames, const uint_32 * dirIndexes,
int fileCount, fingerPrint * fpList)
/*@modifies cache, *fpList @*/;
diff --git a/rpmdb/legacy.c b/rpmdb/legacy.c
index fe13b0aa1..efc9e7943 100644
--- a/rpmdb/legacy.c
+++ b/rpmdb/legacy.c
@@ -275,7 +275,7 @@ void compressFilelist(Header h)
char ** fileNames;
const char ** dirNames;
const char ** baseNames;
- int_32 * dirIndexes;
+ uint_32 * dirIndexes;
rpmTagType fnt;
int count;
int i, xx;
@@ -365,7 +365,7 @@ void rpmfiBuildFNames(Header h, rpmTag tagN,
HFD_t hfd = headerFreeData;
const char ** baseNames;
const char ** dirNames;
- int * dirIndexes;
+ uint_32 * dirIndexes;
int count;
const char ** fileNames;
int size;
diff --git a/rpmdb/rpmdb.c b/rpmdb/rpmdb.c
index 0a55957be..f23bea46d 100644
--- a/rpmdb/rpmdb.c
+++ b/rpmdb/rpmdb.c
@@ -1283,7 +1283,7 @@ if (rc == 0)
if (allMatches != NULL)
while (i < allMatches->count) {
const char ** baseNames, ** dirNames;
- int_32 * dirIndexes;
+ uint_32 * dirIndexes;
unsigned int offset = dbiIndexRecordOffset(allMatches, i);
unsigned int prevoff;
Header h;
@@ -3447,8 +3447,8 @@ if (key->size == 0) key->size++; /* XXX "/" fixup. */
const char ** baseNames;
const char ** fullBaseNames;
rpmTagType bnt, dnt;
- int_32 * dirIndexes;
- int_32 * fullDirIndexes;
+ uint_32 * dirIndexes;
+ uint_32 * fullDirIndexes;
fingerPrint * fps;
dbiIndexItem im;
int start;